Opps. Check if its NOT in the list

This commit is contained in:
libraryaddict 2014-07-10 12:50:19 +12:00
parent 7072b29b28
commit 07bcf29862

View File

@ -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