cleanup
This commit is contained in:
parent
85ee211172
commit
3771a50f30
@ -339,8 +339,8 @@ public abstract class PermissionHolder {
|
|||||||
|
|
||||||
parents.removeIf(node ->
|
parents.removeIf(node ->
|
||||||
!node.shouldApplyOnServer(server, context.isApplyGlobalGroups(), plugin.getConfiguration().isApplyingRegex()) ||
|
!node.shouldApplyOnServer(server, context.isApplyGlobalGroups(), plugin.getConfiguration().isApplyingRegex()) ||
|
||||||
!node.shouldApplyOnWorld(world, context.isApplyGlobalWorldGroups(), plugin.getConfiguration().isApplyingRegex()) ||
|
!node.shouldApplyOnWorld(world, context.isApplyGlobalWorldGroups(), plugin.getConfiguration().isApplyingRegex()) ||
|
||||||
!node.shouldApplyWithContext(contexts.getContextSet(), false)
|
!node.shouldApplyWithContext(contexts.getContextSet(), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
TreeSet<Map.Entry<Integer, Node>> sortedParents = new TreeSet<>(Util.META_COMPARATOR.reversed());
|
TreeSet<Map.Entry<Integer, Node>> sortedParents = new TreeSet<>(Util.META_COMPARATOR.reversed());
|
||||||
@ -467,8 +467,8 @@ public abstract class PermissionHolder {
|
|||||||
|
|
||||||
allNodes.removeIf(node ->
|
allNodes.removeIf(node ->
|
||||||
!node.shouldApplyOnServer(server, context.isIncludeGlobal(), plugin.getConfiguration().isApplyingRegex()) ||
|
!node.shouldApplyOnServer(server, context.isIncludeGlobal(), plugin.getConfiguration().isApplyingRegex()) ||
|
||||||
!node.shouldApplyOnWorld(world, context.isIncludeGlobalWorld(), plugin.getConfiguration().isApplyingRegex()) ||
|
!node.shouldApplyOnWorld(world, context.isIncludeGlobalWorld(), plugin.getConfiguration().isApplyingRegex()) ||
|
||||||
!node.shouldApplyWithContext(contexts.getContextSet(), false)
|
!node.shouldApplyWithContext(contexts.getContextSet(), false)
|
||||||
);
|
);
|
||||||
|
|
||||||
Set<LocalizedNode> perms = ConcurrentHashMap.newKeySet();
|
Set<LocalizedNode> perms = ConcurrentHashMap.newKeySet();
|
||||||
|
Loading…
Reference in New Issue
Block a user