diff options
author | Necrodoom <doomed.war@gmail.com> | 2013-03-03 18:35:05 +0200 |
---|---|---|
committer | Necrodoom <doomed.war@gmail.com> | 2013-03-03 18:35:05 +0200 |
commit | 061794e86d73cb999bc06fb5a8b36c81e3ad33ff (patch) | |
tree | 147f28ac19973cd6072b5d3a32265a3a82115656 /EssentialsGroupManager | |
parent | 69c40a2f1ab7711f41475d885166c620d8ddb0d7 (diff) | |
download | Essentials-061794e86d73cb999bc06fb5a8b36c81e3ad33ff.tar Essentials-061794e86d73cb999bc06fb5a8b36c81e3ad33ff.tar.gz Essentials-061794e86d73cb999bc06fb5a8b36c81e3ad33ff.tar.lz Essentials-061794e86d73cb999bc06fb5a8b36c81e3ad33ff.tar.xz Essentials-061794e86d73cb999bc06fb5a8b36c81e3ad33ff.zip |
add mising isopoverride check
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index 6bcf99d69..965203100 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -1118,7 +1118,7 @@ public class GroupManager extends JavaPlugin { } // Validating your permissions permissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString); - if (!isConsole && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) { + if (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) { sender.sendMessage(ChatColor.RED + "Can't remove a permission you don't have."); return true; } @@ -1161,7 +1161,7 @@ public class GroupManager extends JavaPlugin { for (auxString : auxGroup.getPermissionList()) { permissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString); - if (!isConsole && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) { + if (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) { sender.sendMessage(ChatColor.RED + "Can't remove a permission you don't have: '" + auxString + "'."); } else |