mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +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;
|
||||
}
|
||||
|
||||
// Skip adding global permissions if they are not requested
|
||||
if (!includeGlobal) continue;
|
||||
|
||||
if (node.getKey().matches("luckperms\\.group\\..*")) {
|
||||
// GROUP
|
||||
groupNodes.put(node.getKey(), node.getValue());
|
||||
@ -194,7 +197,6 @@ public abstract class PermissionObject {
|
||||
}
|
||||
|
||||
// JUST NORMAL
|
||||
if (!includeGlobal) continue;
|
||||
userNodes.put(node.getKey(), node.getValue());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user