Use lowercase name instead of full lowercase permission

This commit is contained in:
Phoenix616 2018-01-22 00:39:42 +01:00
parent 1788fa9702
commit e4fb9f9872
1 changed files with 1 additions and 2 deletions

View File

@ -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) {