mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-02-11 11:40:21 +00:00
Don't register permissions if they're already registered
This commit is contained in:
parent
ddbfd5292e
commit
3e733bad21
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ public class PermissionManager extends Manager {
|
|||
// Register plugin permissions to Bukkit
|
||||
PluginManager pluginManager = Bukkit.getPluginManager();
|
||||
|
||||
// Don't register the permissions if we already have, could have happened because of a reload?
|
||||
if (pluginManager.getPermission("playerparticles.*") != null)
|
||||
return;
|
||||
|
||||
Set<Permission> allPermissions = new HashSet<>();
|
||||
|
||||
// Effects
|
||||
|
|
Loading…
Reference in a new issue