mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-19 03:21:20 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
String node = OTHER_NAME + name;
|
return hasPermissionSet(player, OTHER_NAME + name) || hasPermissionSet(player, OTHER_NAME + name.toLowerCase());
|
||||||
return hasPermissionSet(player, node) || hasPermissionSet(player, node.toLowerCase());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean hasPermissionSet(CommandSender sender, String permission) {
|
private static boolean hasPermissionSet(CommandSender sender, String permission) {
|
||||||
|
Loading…
Reference in New Issue
Block a user