[SPIGOT-3409] Bukkit/spigot permission system hangs plugin initialization the more plugins installed and the more permissions inside the plugin.yml Created: 10/Jul/17  Updated: 10/Jul/17  Resolved: 10/Jul/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: mibby mibster Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Attachments: File plugin.yml    

 Description   

Quite a big issue on my hands in relation to how spigot checks permissions.

https://github.com/Borlea/EchoPet/issues/8

Plugins hang pre-startup initialization the more plugins you have installed and the more permissions inside the plugin.yml that try to get injected. With EchoPet in my case, it adds over 2,000 permissions and hangs start-up by ~15 seconds. Removing all permissions inside the plugin.yml, initialization becomes near instant.

Can the permission system be fixed or optimized to not hang initialization based on how many plugins are used and how many permissions are available inside the plugin.yml? As with the more plugins and permissions, the longer individual initializations hang.

For reference.
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/permissions/Permission.java#209



 Comments   
Comment by md_5 [ 10/Jul/17 ]

Cannot reproduce.
I loaded every permission from EchoPet into my test plugin (attached) and observed no change in load time. Plugin initialisation was less than a second.

You have not provided the version you tested with, and you also need to note some permissions plugins like PermissionsEx completely override the Bukkit permissions system.

Generated at Sat Dec 13 15:21:32 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.