mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 04:20:42 +01:00
Only prevent adding nodes with '/manuaddp' and '/mangaddp' if they are
exact matches (not wildcards).
This commit is contained in:
parent
9f13653be6
commit
643a9be985
@ -218,3 +218,4 @@ v 2.0:
|
||||
- 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.
|
||||
- Warn when adding a node where an exception already exist.
|
||||
- Only prevent adding nodes with '/manuaddp' and '/mangaddp' if they are exact matches (not wildcards).
|
@ -770,6 +770,7 @@ public class GroupManager extends JavaPlugin {
|
||||
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.FOUND)) {
|
||||
sender.sendMessage(ChatColor.RED + "The user already has direct access to that permission.");
|
||||
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
||||
if (permissionResult.accessLevel.equalsIgnoreCase(args[1]));
|
||||
return true;
|
||||
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
|
||||
// Warn only while still allowing you to add the node.
|
||||
@ -1026,6 +1027,8 @@ public class GroupManager extends JavaPlugin {
|
||||
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.FOUND)) {
|
||||
sender.sendMessage(ChatColor.RED + "The group already has direct access to that permission.");
|
||||
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
||||
// Abort adding if the node is a direct match.
|
||||
if (permissionResult.accessLevel.equalsIgnoreCase(args[1]));
|
||||
return true;
|
||||
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
|
||||
// Warn only while still allowing you to add the node.
|
||||
|
Loading…
Reference in New Issue
Block a user