mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-08 17:38:20 +01:00
Don't allow adding a node with '/manuaddp' and '/mangaddp' which is
already negated.
This commit is contained in:
parent
29746df914
commit
5f5a9adf31
@ -215,4 +215,5 @@ v 2.0:
|
||||
- Add config potion to set if GM commands should be allowed on CommnandBlocks.
|
||||
- Catch the error when using an out of date config for 'allow_commandblocks' So it doesn't kill the whole config.
|
||||
- '/manselect' will no longer list duplicate worlds.
|
||||
- Added a new mirroring option in the config of 'all_unnamed_worlds'. This will cause all new or unnamed worlds to use this mirroring.
|
||||
- Added a new mirroring option in the config of 'all_unnamed_worlds'. This will cause all new or unnamed worlds to use this mirroring.
|
||||
- Don't allow adding a node with '/manuaddp' and '/mangaddp' which is already negated.
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user