Change #isPermissionSet to be more like the Bukkit impl

This commit is contained in:
Luck 2016-09-21 22:04:18 +01:00
parent f7a0b1ef78
commit 02abb39dc2
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -91,7 +91,7 @@ public class LPPermissible extends PermissibleBase {
@Override @Override
public boolean isPermissionSet(@NonNull String name) { public boolean isPermissionSet(@NonNull String name) {
return luckPermsPermissions.containsKey(name.toLowerCase()) || attachmentPermissions.containsKey(name.toLowerCase()); return calculator.getPermissionValue(name) != Tristate.UNDEFINED;
} }
@Override @Override