Delete unused command

This commit is contained in:
Deku
2017-12-23 11:06:24 -03:00
committed by Barbz
parent 35681a9d14
commit 3ec29b33e6

View File

@@ -31,16 +31,13 @@ public:
{ "global", SEC_GAMEMASTER, true, &HandleAntiCheatGlobalCommand, "" },
{ "player", SEC_GAMEMASTER, true, &HandleAntiCheatPlayerCommand, "" },
{ "delete", SEC_ADMINISTRATOR, true, &HandleAntiCheatDeleteCommand, "" },
{ "handle", SEC_ADMINISTRATOR, true, &HandleAntiCheatHandleCommand, "" },
{ "jail", SEC_GAMEMASTER, true, &HandleAnticheatJailCommand, "" },
{ "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" },
// { NULL, 0, false, NULL, "", NULL }
{ "jail", SEC_GAMEMASTER, false, &HandleAnticheatJailCommand, "" },
{ "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" }
};
static std::vector<ChatCommand> commandTable =
{
{ "anticheat", SEC_GAMEMASTER, true, NULL, "", anticheatCommandTable},
// { NULL, 0, false, NULL, "", NULL }
};
return commandTable;
@@ -215,34 +212,6 @@ public:
return true;
}
static bool HandleAntiCheatHandleCommand(ChatHandler* handler, const char* args)
{
/* std::string strCommand;
char* command = strtok((char*)args, " ");
if (!command)
return true;
if (!handler->GetSession()->GetPlayer())
return true;
strCommand = command;
if (strCommand.compare("on") == 0)
{
sWorld->setBoolConfig(CONFIG_ANTICHEAT_ENABLE,true);
handler->SendSysMessage("The Anticheat System is now: Enabled!");
}
else if (strCommand.compare("off") == 0)
{
sWorld->setBoolConfig(CONFIG_ANTICHEAT_ENABLE,false);
handler->SendSysMessage("The Anticheat System is now: Disabled!");
}*/
handler->PSendSysMessage("Please change value in config file and reload to disable/enable anticheat system.");
return true;
}
static bool HandleAntiCheatGlobalCommand(ChatHandler* handler, const char* /* args */)
{
if (!sConfigMgr->GetBoolDefault("Anticheat.Enabled", 0))