From 07bcf298620e8684ec558da4196e8f317117f661 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 10 Jul 2014 12:50:19 +1200 Subject: [PATCH] Opps. Check if its NOT in the list --- .../libraryaddict/disguise/utilities/BaseDisguiseCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java index 8dc992cc..cf052821 100644 --- a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java @@ -315,7 +315,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { // He needs to give the player name throw new Exception(ChatColor.RED + "Error! You need to give a player name!"); } else { - if (!disguiseOptions.isEmpty() && disguiseOptions.contains(args[1].toLowerCase())) { + if (!disguiseOptions.isEmpty() && !disguiseOptions.contains(args[1].toLowerCase())) { throw new Exception(ChatColor.RED + "Error! You don't have permission to use that name!"); } // Construct the player disguise