Fixed the code not liking the _ non checking

This commit is contained in:
Andrew 2013-11-06 05:44:54 +13:00
parent 90e670c4a5
commit 414ba24363

View File

@ -77,7 +77,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
throw new Exception(ChatColor.RED + "Error! The disguise " + ChatColor.GREEN + args[0] + ChatColor.RED throw new Exception(ChatColor.RED + "Error! The disguise " + ChatColor.GREEN + args[0] + ChatColor.RED
+ " doesn't exist!"); + " 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!"); throw new Exception(ChatColor.RED + "You are forbidden to use this disguise!");
} }
Disguise disguise = null; Disguise disguise = null;