Don't include global groups when global permissions are requested

This commit is contained in:
Luck 2016-06-17 20:40:28 +01:00
parent 20f34d9b45
commit 00c3a8b415

View File

@ -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());
}