From 3a0a89853fe94f38c69cd902c2903a1743eee560 Mon Sep 17 00:00:00 2001 From: Luck Date: Tue, 13 Sep 2016 17:23:16 +0100 Subject: [PATCH] Apply negated wildcards --- .../main/java/me/lucko/luckperms/inject/LPPermissible.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/me/lucko/luckperms/inject/LPPermissible.java b/bukkit/src/main/java/me/lucko/luckperms/inject/LPPermissible.java index 8320660dd..699c53673 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/inject/LPPermissible.java +++ b/bukkit/src/main/java/me/lucko/luckperms/inject/LPPermissible.java @@ -94,8 +94,11 @@ public class LPPermissible extends PermissibleBase { } if (plugin.getConfiguration().getApplyWildcards()) { - if (luckPermsPermissions.containsKey("*") || luckPermsPermissions.containsKey("'*'")) { - return Tristate.TRUE; + if (luckPermsPermissions.containsKey("*")) { + return Tristate.fromBoolean(luckPermsPermissions.get("*")); + } + if (luckPermsPermissions.containsKey("'*'")) { + return Tristate.fromBoolean(luckPermsPermissions.get("'*'")); } String node = "";