From a9619bc08c08879f31cde2ed670c595e01d3d566 Mon Sep 17 00:00:00 2001 From: Luck Date: Tue, 2 Aug 2016 00:50:47 +0200 Subject: [PATCH] small fix --- .../main/java/me/lucko/luckperms/utils/PermissionObject.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/utils/PermissionObject.java b/common/src/main/java/me/lucko/luckperms/utils/PermissionObject.java index 80320b33..73da8904 100644 --- a/common/src/main/java/me/lucko/luckperms/utils/PermissionObject.java +++ b/common/src/main/java/me/lucko/luckperms/utils/PermissionObject.java @@ -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;