mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-27 21:29:47 +01:00
Don't include global groups when global permissions are requested
This commit is contained in:
parent
20f34d9b45
commit
00c3a8b415
@ -187,6 +187,9 @@ public abstract class PermissionObject {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip adding global permissions if they are not requested
|
||||||
|
if (!includeGlobal) continue;
|
||||||
|
|
||||||
if (node.getKey().matches("luckperms\\.group\\..*")) {
|
if (node.getKey().matches("luckperms\\.group\\..*")) {
|
||||||
// GROUP
|
// GROUP
|
||||||
groupNodes.put(node.getKey(), node.getValue());
|
groupNodes.put(node.getKey(), node.getValue());
|
||||||
@ -194,7 +197,6 @@ public abstract class PermissionObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// JUST NORMAL
|
// JUST NORMAL
|
||||||
if (!includeGlobal) continue;
|
|
||||||
userNodes.put(node.getKey(), node.getValue());
|
userNodes.put(node.getKey(), node.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user