mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Delete unused command
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user