diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-10-29 02:16:29 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-10-29 02:16:29 +0100 |
commit | cc9e7130e8578a217c6067a1904a0cd193f0d829 (patch) | |
tree | 61173c872484dcae73fba5acba38d708956c9a0b | |
parent | 809d18575d1f87f48b75478d023ebb85fc79b921 (diff) | |
download | Essentials-cc9e7130e8578a217c6067a1904a0cd193f0d829.tar Essentials-cc9e7130e8578a217c6067a1904a0cd193f0d829.tar.gz Essentials-cc9e7130e8578a217c6067a1904a0cd193f0d829.tar.lz Essentials-cc9e7130e8578a217c6067a1904a0cd193f0d829.tar.xz Essentials-cc9e7130e8578a217c6067a1904a0cd193f0d829.zip |
Adding the handler to the (painful) list of permissions systems we support.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/perm/PermissionsHandler.java | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/Essentials/src/com/earth2me/essentials/perm/PermissionsHandler.java b/Essentials/src/com/earth2me/essentials/perm/PermissionsHandler.java index 8adff346a..ab69d9fe4 100644 --- a/Essentials/src/com/earth2me/essentials/perm/PermissionsHandler.java +++ b/Essentials/src/com/earth2me/essentials/perm/PermissionsHandler.java @@ -111,17 +111,6 @@ public class PermissionsHandler implements IPermissionsHandler return; } - final Plugin permBukkitPlugin = pluginManager.getPlugin("PermissionsBukkit"); - if (permBukkitPlugin != null && permBukkitPlugin.isEnabled()) - { - if (!(handler instanceof PermissionsBukkitHandler)) - { - LOGGER.log(Level.INFO, "Essentials: Using PermissionsBukkit based permissions."); - handler = new PermissionsBukkitHandler(permBukkitPlugin); - } - return; - } - final Plugin bPermPlugin = pluginManager.getPlugin("bPermissions"); if (bPermPlugin != null && bPermPlugin.isEnabled()) { @@ -132,6 +121,28 @@ public class PermissionsHandler implements IPermissionsHandler } return; } + + final Plugin GMplugin = pluginManager.getPlugin("GroupManager"); + if (GMplugin != null && GMplugin.isEnabled()) + { + if (!(handler instanceof GroupManagerHandler)) + { + LOGGER.log(Level.INFO, "Essentials: Using GroupManager based permissions."); + handler = new GroupManagerHandler(GMplugin); + } + return; + } + + final Plugin permBukkitPlugin = pluginManager.getPlugin("PermissionsBukkit"); + if (permBukkitPlugin != null && permBukkitPlugin.isEnabled()) + { + if (!(handler instanceof PermissionsBukkitHandler)) + { + LOGGER.log(Level.INFO, "Essentials: Using PermissionsBukkit based permissions."); + handler = new PermissionsBukkitHandler(permBukkitPlugin); + } + return; + } final Plugin permPlugin = pluginManager.getPlugin("Permissions"); if (permPlugin != null && permPlugin.isEnabled()) |