mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 17:47:34 +01:00
Allow negations with the * permission node when population superperms.
This commit is contained in:
parent
a13740f638
commit
8390594682
@ -117,3 +117,4 @@ v 1.9:
|
|||||||
- Changed addSubGroup() to only add the group if it doesn't already exist (no need to update an already existing group).
|
- Changed addSubGroup() to only add the group if it doesn't already exist (no need to update an already existing group).
|
||||||
- addSubGroup now returns a boolean for success/failure.
|
- addSubGroup now returns a boolean for success/failure.
|
||||||
- '/manuaddsub' now correctly reports if it was able to add the sub group.
|
- '/manuaddsub' now correctly reports if it was able to add the sub group.
|
||||||
|
- Allow negations with the * permission node when population superperms.
|
@ -150,11 +150,13 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
|
|||||||
|
|
||||||
Set<String> permArray = new HashSet<String>();
|
Set<String> permArray = new HashSet<String>();
|
||||||
|
|
||||||
for (String perm : perms) {
|
|
||||||
|
|
||||||
// Allow * node to populate ALL perms in Bukkit.
|
// Allow * node to populate ALL perms in Bukkit.
|
||||||
if (perm.equalsIgnoreCase("*"))
|
if (perms.contains("*")) {
|
||||||
permArray.addAll(GroupManager.BukkitPermissions.getAllRegisteredPermissions(includeChildren));
|
permArray.addAll(GroupManager.BukkitPermissions.getAllRegisteredPermissions(includeChildren));
|
||||||
|
perms.remove("*");
|
||||||
|
}
|
||||||
|
|
||||||
|
for (String perm : perms) {
|
||||||
|
|
||||||
boolean negated = false;
|
boolean negated = false;
|
||||||
if (perm.startsWith("-"))
|
if (perm.startsWith("-"))
|
||||||
|
Loading…
Reference in New Issue
Block a user