From 95b6c40b7a076de9ffaf78642adde5ecc18985fe Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 19 Nov 2013 22:53:39 +1300 Subject: [PATCH] Fixed the wrong disguise option being returned as the bad permission --- src/me/libraryaddict/disguise/BaseDisguiseCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/BaseDisguiseCommand.java b/src/me/libraryaddict/disguise/BaseDisguiseCommand.java index ac3409e4..37ec069c 100644 --- a/src/me/libraryaddict/disguise/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/BaseDisguiseCommand.java @@ -348,7 +348,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { for (HashSet perms : optionPermissions) { if (!perms.containsAll(usedOptions)) { 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]); } } }