Delete Command "AutoAttack"

This commit is contained in:
ReinforceZwei 2020-03-24 15:06:20 +08:00 committed by ORelio
parent 7fbf9443a1
commit 27db483c7c

View file

@ -1,42 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MinecraftClient.Commands
{
class AutoAttack : Command
{
public override string CMDName { get { return "autoattack"; } }
public override string CMDDesc { get { return "autoattack <on|off>: Auto attack mobs around you."; } }
public override string Run(McTcpClient handler, string command)
{
if (hasArg(command))
{
string arg = getArg(command);
if (arg == "on")
{
if (handler.GetEntityHandlingEnabled())
{
// TODO: check if the bot already loaded
// I don't know how :C
handler.BotLoad(new ChatBots.AutoAttack());
return "Auto Attack now enabled.";
}
else
{
return "Please enable EntityHandling in the config before using this.";
}
}
else if(arg == "off")
{
// TODO: unload auto attack bot
// I don't know how to unload a single bot :C
return "Currently not implemented :/";
}
}
return CMDDesc;
}
}
}