mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-04 21:58:25 +02:00
Don't allow adding a node with '/manuaddp' and '/mangaddp' which is
already negated.
This commit is contained in:
@@ -215,4 +215,5 @@ v 2.0:
|
|||||||
- Add config potion to set if GM commands should be allowed on CommnandBlocks.
|
- 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.
|
- 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.
|
- '/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 + "The user already has direct access to that permission.");
|
||||||
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
||||||
return true;
|
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
|
// 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 + "The group already has direct access to that permission.");
|
||||||
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
||||||
return true;
|
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
|
// Seems OK
|
||||||
|
Reference in New Issue
Block a user