small fix

This commit is contained in:
Luck 2016-08-02 00:50:47 +02:00 committed by GitHub
parent a7a84952fe
commit a9619bc08c

View File

@ -540,7 +540,7 @@ public abstract class PermissionObject {
// Could be here if the server was set to global.
String n = node.getKey();
if (n.contains("/")) {
n = Patterns.SERVER_SPLIT.split(n, 2)[0];
n = Patterns.SERVER_SPLIT.split(n, 2)[1];
}
if (Patterns.GROUP_MATCH.matcher(n).matches()) {
@ -571,7 +571,6 @@ public abstract class PermissionObject {
// Add the actual group perm node, so other plugins can hook
perms.put(groupNode.getKey(), groupNode.getValue());
// Don't add negated groups
if (!groupNode.getValue()) continue;