diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-10-29 02:09:11 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-10-29 02:09:11 +0100 |
commit | 809d18575d1f87f48b75478d023ebb85fc79b921 (patch) | |
tree | d4ce22f9f5994b51f6e4150245a3d7b68bb06dad | |
parent | 56b5a128f5d0dc1cd017bf48a1116d360931388b (diff) | |
download | Essentials-809d18575d1f87f48b75478d023ebb85fc79b921.tar Essentials-809d18575d1f87f48b75478d023ebb85fc79b921.tar.gz Essentials-809d18575d1f87f48b75478d023ebb85fc79b921.tar.lz Essentials-809d18575d1f87f48b75478d023ebb85fc79b921.tar.xz Essentials-809d18575d1f87f48b75478d023ebb85fc79b921.zip |
File formatting.
-rw-r--r-- | Essentials/nbproject/project.properties | 2 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/Essentials/nbproject/project.properties b/Essentials/nbproject/project.properties index 0093f68f2..89b5e0958 100644 --- a/Essentials/nbproject/project.properties +++ b/Essentials/nbproject/project.properties @@ -89,7 +89,7 @@ javac.classpath=\ ${file.reference.PermissionsEx.jar}:\ ${file.reference.bPermissions.jar}:\ ${file.reference.PermissionsBukkit-1.2.jar}:\ - ${file.reference.lombok-0.10.1.jar} + ${file.reference.lombok-0.10.1.jar}:\ ${reference.EssentialsGroupManager.jar} # Space-separated list of extra javac options javac.compilerargs= diff --git a/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java b/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java index 038030879..20b3806e0 100644 --- a/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java +++ b/Essentials/src/com/earth2me/essentials/perm/GroupManagerHandler.java @@ -15,55 +15,55 @@ public class GroupManagerHandler implements IPermissionsHandler public GroupManagerHandler(final Plugin permissionsPlugin) { - groupManager = ((GroupManager)permissionsPlugin); + groupManager = ((GroupManager)permissionsPlugin); } @Override public String getGroup(final Player base) { - final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); - return handler.getGroup(base.getName()); + final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); + return handler.getGroup(base.getName()); } @Override public List<String> getGroups(final Player base) { final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); - return Arrays.asList(handler.getGroups(base.getName())); + return Arrays.asList(handler.getGroups(base.getName())); } @Override public boolean canBuild(final Player base, final String group) { - final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); - return handler.canUserBuild(base.getName()); + final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); + return handler.canUserBuild(base.getName()); } @Override public boolean inGroup(final Player base, final String group) { - AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); - return handler.inGroup(base.getName(), group); + AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); + return handler.inGroup(base.getName(), group); } @Override public boolean hasPermission(final Player base, final String node) { - AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); + AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); return handler.has(base, node); } @Override public String getPrefix(final Player base) { - AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); + AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); return handler.getUserPrefix(base.getName()); } @Override public String getSuffix(final Player base) { - AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); + AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base); return handler.getUserSuffix(base.getName()); } } |