diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-04-01 02:44:11 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-04-01 02:44:11 +0100 |
commit | d72f831519d0f61951aa7d3f410f93b641b312f9 (patch) | |
tree | ced2aba516c95371965a56d8de222fd70e2abd32 | |
parent | c6f25c0df66f75b98b4c1cc8ee4f3a16bb0be417 (diff) | |
download | Essentials-d72f831519d0f61951aa7d3f410f93b641b312f9.tar Essentials-d72f831519d0f61951aa7d3f410f93b641b312f9.tar.gz Essentials-d72f831519d0f61951aa7d3f410f93b641b312f9.tar.lz Essentials-d72f831519d0f61951aa7d3f410f93b641b312f9.tar.xz Essentials-d72f831519d0f61951aa7d3f410f93b641b312f9.zip |
Make sure can build checks in permbukkit/privileges work for admins/owners.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java | 2 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/perm/PrivilegesHandler.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java b/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java index b3cc62979..aef6401d9 100644 --- a/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java +++ b/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java @@ -78,6 +78,6 @@ public class PermissionsBukkitHandler extends SuperpermsHandler @Override public boolean canBuild(Player base, String group) { - return base.hasPermission("essentials.build") || base.hasPermission("permissions.build"); + return hasPermission(base, "essentials.build") || hasPermission(base, "permissions.build"); } } diff --git a/Essentials/src/com/earth2me/essentials/perm/PrivilegesHandler.java b/Essentials/src/com/earth2me/essentials/perm/PrivilegesHandler.java index c81f93cbc..6cc97f30e 100644 --- a/Essentials/src/com/earth2me/essentials/perm/PrivilegesHandler.java +++ b/Essentials/src/com/earth2me/essentials/perm/PrivilegesHandler.java @@ -55,7 +55,7 @@ public class PrivilegesHandler extends SuperpermsHandler @Override public boolean canBuild(Player base, String group) { - return base.hasPermission("essentials.build") || base.hasPermission("privileges.build"); + return hasPermission(base, "essentials.build") || hasPermission(base, "privileges.build"); } } |