diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-03-03 13:47:59 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-03-03 13:47:59 +0000 |
commit | 79d4ee04ac114ecc03e57e19582b6b38dab7e0b0 (patch) | |
tree | 857d0fd49aaf1ff5f8b81e1c12adee02135459a8 /EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java | |
parent | 29fa09510f624ea08ae3c4d465329cbfa503c794 (diff) | |
download | Essentials-79d4ee04ac114ecc03e57e19582b6b38dab7e0b0.tar Essentials-79d4ee04ac114ecc03e57e19582b6b38dab7e0b0.tar.gz Essentials-79d4ee04ac114ecc03e57e19582b6b38dab7e0b0.tar.lz Essentials-79d4ee04ac114ecc03e57e19582b6b38dab7e0b0.tar.xz Essentials-79d4ee04ac114ecc03e57e19582b6b38dab7e0b0.zip |
Fix a silly logic error when testing bukkit perms
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java index b9315e849..6b6ae58ea 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java @@ -766,7 +766,7 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface { // (Heroes). final Player player = user.getBukkitPlayer(); //final Permission bukkitPerm = Bukkit.getPluginManager().getPermission(targetPermission); - if (player != null && player.hasPermission(targetPermission)) { + if ((player != null) && player.hasPermission(targetPermission)) { result.resultType = PermissionCheckResult.Type.FOUND; result.owner = user; return result; |