From 02abb39dc2f5e7da116f5484f8bf7784460c78b1 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 21 Sep 2016 22:04:18 +0100 Subject: [PATCH] Change #isPermissionSet to be more like the Bukkit impl --- .../src/main/java/me/lucko/luckperms/inject/LPPermissible.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3052ea22..078a6a3c 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/inject/LPPermissible.java +++ b/bukkit/src/main/java/me/lucko/luckperms/inject/LPPermissible.java @@ -91,7 +91,7 @@ public class LPPermissible extends PermissibleBase { @Override public boolean isPermissionSet(@NonNull String name) { - return luckPermsPermissions.containsKey(name.toLowerCase()) || attachmentPermissions.containsKey(name.toLowerCase()); + return calculator.getPermissionValue(name) != Tristate.UNDEFINED; } @Override