Fixed the code not liking the _ non checking
This commit is contained in:
parent
90e670c4a5
commit
414ba24363
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user