Removed true/false for disguise commands
This commit is contained in:
parent
514ad74db3
commit
d81b1d8b7c
@ -206,14 +206,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
|||||||
if (disguiseType.isMob()) { // Its a mob, use the mob constructor
|
if (disguiseType.isMob()) { // Its a mob, use the mob constructor
|
||||||
boolean adult = true;
|
boolean adult = true;
|
||||||
if (args.length > 1) {
|
if (args.length > 1) {
|
||||||
if (args[1].equalsIgnoreCase("true") || args[1].equalsIgnoreCase("false")) {
|
if (args[1].equalsIgnoreCase("baby") || args[1].equalsIgnoreCase("adult")) {
|
||||||
usedOptions.add("setbaby");
|
|
||||||
doCheck(optionPermissions, usedOptions);
|
|
||||||
adult = "false".equalsIgnoreCase(args[1]);
|
|
||||||
sender.sendMessage(ChatColor.RED
|
|
||||||
+ "I notice you are using true/false for constructing a mob disguise! This will soon be removed in favor of the simple 'baby'");
|
|
||||||
toSkip++;
|
|
||||||
} else if (args[1].equalsIgnoreCase("baby") || args[1].equalsIgnoreCase("adult")) {
|
|
||||||
usedOptions.add("setbaby");
|
usedOptions.add("setbaby");
|
||||||
doCheck(optionPermissions, usedOptions);
|
doCheck(optionPermissions, usedOptions);
|
||||||
adult = args[1].equalsIgnoreCase("adult");
|
adult = args[1].equalsIgnoreCase("adult");
|
||||||
|
Loading…
Reference in New Issue
Block a user