Fixed perm typo
This commit is contained in:
parent
04bb2207c7
commit
ddf3650675
@ -24,7 +24,7 @@ public class DisguisePlayerCommand implements CommandExecutor {
|
||||
ArrayList<String> names = new ArrayList<String>();
|
||||
for (DisguiseType type : DisguiseType.values()) {
|
||||
String name = type.name().toLowerCase();
|
||||
if (sender.hasPermission("libsdisguises.disguiseentity." + name))
|
||||
if (sender.hasPermission("libsdisguises.disguiseplayer." + name))
|
||||
names.add(name);
|
||||
}
|
||||
Collections.sort(names, String.CASE_INSENSITIVE_ORDER);
|
||||
@ -35,7 +35,7 @@ public class DisguisePlayerCommand implements CommandExecutor {
|
||||
ArrayList<String> names = new ArrayList<String>();
|
||||
for (DisguiseType type : DisguiseType.values()) {
|
||||
String name = type.name().toLowerCase();
|
||||
if (!sender.hasPermission("libsdisguises.disguiseentity." + name))
|
||||
if (!sender.hasPermission("libsdisguises.disguiseplayer." + name))
|
||||
names.add(name);
|
||||
}
|
||||
Collections.sort(names, String.CASE_INSENSITIVE_ORDER);
|
||||
|
Loading…
Reference in New Issue
Block a user