mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 04:55:33 +01:00
Update src/net/milkbowl/vault/Vault.java
alter load priorities on permissions so Group-based permission plugins are detected over non-group based. And legacy plugins are last-load.
This commit is contained in:
parent
757d3bf21d
commit
273ff78745
@ -258,7 +258,7 @@ public class Vault extends JavaPlugin {
|
|||||||
hookPermission("PermissionsEx", Permission_PermissionsEx.class, ServicePriority.Highest, "ru.tehkode.permissions.bukkit.PermissionsEx");
|
hookPermission("PermissionsEx", Permission_PermissionsEx.class, ServicePriority.Highest, "ru.tehkode.permissions.bukkit.PermissionsEx");
|
||||||
|
|
||||||
// Try to load PermissionsBukkit
|
// Try to load PermissionsBukkit
|
||||||
hookPermission("PermissionsBukkit", Permission_PermissionsBukkit.class, ServicePriority.Highest, "com.platymuus.bukkit.permissions.PermissionsPlugin");
|
hookPermission("PermissionsBukkit", Permission_PermissionsBukkit.class, ServicePriority.Normal, "com.platymuus.bukkit.permissions.PermissionsPlugin");
|
||||||
|
|
||||||
// Try to load DroxPerms
|
// Try to load DroxPerms
|
||||||
hookPermission("DroxPerms", Permission_DroxPerms.class, ServicePriority.High, "de.hydrox.bukkit.DroxPerms.DroxPerms");
|
hookPermission("DroxPerms", Permission_DroxPerms.class, ServicePriority.High, "de.hydrox.bukkit.DroxPerms.DroxPerms");
|
||||||
@ -282,7 +282,7 @@ public class Vault extends JavaPlugin {
|
|||||||
hookPermission("GroupManager", Permission_GroupManager.class, ServicePriority.High, "org.anjocaido.groupmanager.GroupManager");
|
hookPermission("GroupManager", Permission_GroupManager.class, ServicePriority.High, "org.anjocaido.groupmanager.GroupManager");
|
||||||
|
|
||||||
// Try to load Permissions 3 (Yeti)
|
// Try to load Permissions 3 (Yeti)
|
||||||
hookPermission("Permissions 3 (Yeti)", Permission_Permissions3.class, ServicePriority.High, "com.nijiko.permissions.ModularControl");
|
hookPermission("Permissions 3 (Yeti)", Permission_Permissions3.class, ServicePriority.Normal, "com.nijiko.permissions.ModularControl");
|
||||||
|
|
||||||
Permission perms = new Permission_SuperPerms(this);
|
Permission perms = new Permission_SuperPerms(this);
|
||||||
sm.register(Permission.class, perms, this, ServicePriority.Lowest);
|
sm.register(Permission.class, perms, this, ServicePriority.Lowest);
|
||||||
|
Loading…
Reference in New Issue
Block a user