Use lowercase name instead of full lowercase permission
This commit is contained in:
parent
1788fa9702
commit
e4fb9f9872
|
@ -47,8 +47,7 @@ public enum Permission {
|
|||
return false;
|
||||
}
|
||||
|
||||
String node = OTHER_NAME + name;
|
||||
return hasPermissionSet(player, node) || hasPermissionSet(player, node.toLowerCase());
|
||||
return hasPermissionSet(player, OTHER_NAME + name) || hasPermissionSet(player, OTHER_NAME + name.toLowerCase());
|
||||
}
|
||||
|
||||
private static boolean hasPermissionSet(CommandSender sender, String permission) {
|
||||
|
|
Loading…
Reference in New Issue