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:
@@ -28,19 +28,16 @@ public:
|
|||||||
{
|
{
|
||||||
static std::vector<ChatCommand> anticheatCommandTable =
|
static std::vector<ChatCommand> anticheatCommandTable =
|
||||||
{
|
{
|
||||||
{ "global", SEC_GAMEMASTER, true, &HandleAntiCheatGlobalCommand, "" },
|
{ "global", SEC_GAMEMASTER, true, &HandleAntiCheatGlobalCommand, "" },
|
||||||
{ "player", SEC_GAMEMASTER, true, &HandleAntiCheatPlayerCommand, "" },
|
{ "player", SEC_GAMEMASTER, true, &HandleAntiCheatPlayerCommand, "" },
|
||||||
{ "delete", SEC_ADMINISTRATOR, true, &HandleAntiCheatDeleteCommand, "" },
|
{ "delete", SEC_ADMINISTRATOR, true, &HandleAntiCheatDeleteCommand, "" },
|
||||||
{ "handle", SEC_ADMINISTRATOR, true, &HandleAntiCheatHandleCommand, "" },
|
{ "jail", SEC_GAMEMASTER, false, &HandleAnticheatJailCommand, "" },
|
||||||
{ "jail", SEC_GAMEMASTER, true, &HandleAnticheatJailCommand, "" },
|
{ "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" }
|
||||||
{ "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" },
|
|
||||||
// { NULL, 0, false, NULL, "", NULL }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static std::vector<ChatCommand> commandTable =
|
static std::vector<ChatCommand> commandTable =
|
||||||
{
|
{
|
||||||
{ "anticheat", SEC_GAMEMASTER, true, NULL, "", anticheatCommandTable},
|
{ "anticheat", SEC_GAMEMASTER, true, NULL, "", anticheatCommandTable},
|
||||||
// { NULL, 0, false, NULL, "", NULL }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return commandTable;
|
return commandTable;
|
||||||
@@ -215,34 +212,6 @@ public:
|
|||||||
return true;
|
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 */)
|
static bool HandleAntiCheatGlobalCommand(ChatHandler* handler, const char* /* args */)
|
||||||
{
|
{
|
||||||
if (!sConfigMgr->GetBoolDefault("Anticheat.Enabled", 0))
|
if (!sConfigMgr->GetBoolDefault("Anticheat.Enabled", 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user