diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-02-25 10:27:01 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-02-25 10:27:01 +0000 |
commit | 5f5a9adf318826c0d943c7c20f8da7a76b4ec212 (patch) | |
tree | 39c3e4b6227051b7b9b8a5e3252f4de05b4e1d1a /EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | |
parent | 29746df914f009dfb813dc926d4020845ff5944f (diff) | |
download | Essentials-5f5a9adf318826c0d943c7c20f8da7a76b4ec212.tar Essentials-5f5a9adf318826c0d943c7c20f8da7a76b4ec212.tar.gz Essentials-5f5a9adf318826c0d943c7c20f8da7a76b4ec212.tar.lz Essentials-5f5a9adf318826c0d943c7c20f8da7a76b4ec212.tar.xz Essentials-5f5a9adf318826c0d943c7c20f8da7a76b4ec212.zip |
Don't allow adding a node with '/manuaddp' and '/mangaddp' which is
already negated.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index fb39d28ee..bf9e49300 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -767,6 +767,10 @@ public class GroupManager extends JavaPlugin { sender.sendMessage(ChatColor.RED + "The user already has direct access to that permission."); sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel); return true; + } else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) { + sender.sendMessage(ChatColor.RED + "The user already has a matching Negated node "); + sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel); + return true; } } // Seems OK @@ -1015,6 +1019,10 @@ public class GroupManager extends JavaPlugin { sender.sendMessage(ChatColor.RED + "The group already has direct access to that permission."); sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel); return true; + } else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) { + sender.sendMessage(ChatColor.RED + "The group already has a matching Negated node "); + sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel); + return true; } } // Seems OK |