no need for mobtarget boolean
This commit is contained in:
@@ -328,7 +328,7 @@ public class BotCommand extends CommandInstance {
|
||||
|
||||
String extra = ChatColor.GRAY + " [" + ChatColor.YELLOW + "/bot settings" + ChatColor.GRAY + "]";
|
||||
|
||||
if (arg1 == null || (!arg1.equals("setgoal") && !arg1.equals("mobtarget"))) {
|
||||
if (arg1 == null || (!arg1.equals("setgoal"))) {
|
||||
sender.sendMessage(ChatUtils.LINE);
|
||||
sender.sendMessage(ChatColor.GOLD + "Bot Settings" + extra);
|
||||
sender.sendMessage(ChatUtils.BULLET_FORMATTED + ChatColor.YELLOW + "setgoal" + ChatUtils.BULLET_FORMATTED + "Set the global bot target selection method.");
|
||||
@@ -336,20 +336,6 @@ public class BotCommand extends CommandInstance {
|
||||
sender.sendMessage(ChatUtils.LINE);
|
||||
return;
|
||||
}
|
||||
|
||||
if(arg1.equals("mobtarget"))
|
||||
{
|
||||
if(arg2 == null || (!arg2.equals("true") && !arg2.equals("false")))
|
||||
{
|
||||
sender.sendMessage(ChatUtils.LINE);
|
||||
sender.sendMessage(ChatColor.GOLD + "Only true or false is accepted");
|
||||
sender.sendMessage(ChatUtils.LINE);
|
||||
return;
|
||||
}
|
||||
Bot.mobTargeting = Boolean.parseBoolean(arg2);
|
||||
sender.sendMessage("Mob targeting has been set to " + ChatColor.BLUE + arg2 + ChatColor.RESET + ".");
|
||||
return;
|
||||
}
|
||||
|
||||
EnumTargetGoal goal = EnumTargetGoal.from(arg2 == null ? "" : arg2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user