mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Fixed the wrong disguise option being returned as the bad permission
This commit is contained in:
parent
9b30140e22
commit
95b6c40b7a
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
||||||
for (HashSet<String> perms : optionPermissions) {
|
for (HashSet<String> perms : optionPermissions) {
|
||||||
if (!perms.containsAll(usedOptions)) {
|
if (!perms.containsAll(usedOptions)) {
|
||||||
throw new Exception(ChatColor.RED + "You do not have the permission to use the option "
|
throw new Exception(ChatColor.RED + "You do not have the permission to use the option "
|
||||||
+ usedOptions.iterator().next());
|
+ usedOptions.toArray(new String[usedOptions.size()])[usedOptions.size() - 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue