mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Improved permissions manager
This commit is contained in:
parent
82e65250b8
commit
71e24fe80a
@ -251,15 +251,16 @@ public class PermissionsManager {
|
||||
* @param event Event instance.
|
||||
*/
|
||||
public void onPluginEnable(PluginEnableEvent event) {
|
||||
Plugin p = event.getPlugin();
|
||||
String pn = p.getName();
|
||||
// Get the plugin and it's name
|
||||
Plugin plugin = event.getPlugin();
|
||||
String pluginName = plugin.getName();
|
||||
|
||||
// Check if any known permissions system is enabling
|
||||
if(pn.equals("PermissionsEx") || pn.equals("PermissionsBukkit") ||
|
||||
pn.equals("bPermissions") || pn.equals("GroupManager") ||
|
||||
pn.equals("zPermissions") || pn.equals("Vault") ||
|
||||
pn.equals("Permissions")) {
|
||||
this.log.info(pn + " plugin enabled, updating hooks!");
|
||||
if(pluginName.equals("PermissionsEx") || pluginName.equals("PermissionsBukkit") ||
|
||||
pluginName.equals("bPermissions") || pluginName.equals("GroupManager") ||
|
||||
pluginName.equals("zPermissions") || pluginName.equals("Vault") ||
|
||||
pluginName.equals("Permissions")) {
|
||||
this.log.info(pluginName + " plugin enabled, dynamically updating permissions hooks!");
|
||||
setup();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user