Fixed perm typo

This commit is contained in:
Andrew 2013-07-16 17:36:06 +12:00
parent 04bb2207c7
commit ddf3650675

View File

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