Opps. Check if its NOT in the list
This commit is contained in:
parent
7072b29b28
commit
07bcf29862
@ -315,7 +315,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
|||||||
// He needs to give the player name
|
// He needs to give the player name
|
||||||
throw new Exception(ChatColor.RED + "Error! You need to give a player name!");
|
throw new Exception(ChatColor.RED + "Error! You need to give a player name!");
|
||||||
} else {
|
} 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!");
|
throw new Exception(ChatColor.RED + "Error! You don't have permission to use that name!");
|
||||||
}
|
}
|
||||||
// Construct the player disguise
|
// Construct the player disguise
|
||||||
|
Loading…
Reference in New Issue
Block a user