From 414ba24363cc17a548cbccb832ca449f3c736ccc Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 6 Nov 2013 05:44:54 +1300 Subject: [PATCH] Fixed the code not liking the _ non checking --- 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 07103a0b..c1413c83 100644 --- a/src/me/libraryaddict/disguise/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/BaseDisguiseCommand.java @@ -77,7 +77,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { throw new Exception(ChatColor.RED + "Error! The disguise " + ChatColor.GREEN + args[0] + ChatColor.RED + " doesn't exist!"); } - if (!allowedDisguises.contains(args[0].toLowerCase())) { + if (!allowedDisguises.contains(disguiseType.name().toLowerCase())) { throw new Exception(ChatColor.RED + "You are forbidden to use this disguise!"); } Disguise disguise = null;