mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-13 17:01:21 +01:00
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
Block a user