mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Add: Purge cmd
.anticheat purge clears the whole daily_player_reports table. only administrator level can do run the command.
This commit is contained in:
@@ -781,6 +781,11 @@ void AnticheatMgr::AnticheatDeleteCommand(ObjectGuid guid)
|
||||
}
|
||||
}
|
||||
|
||||
void AnticheatMgr::AnticheatPurgeCommand(ChatHandler* handler)
|
||||
{
|
||||
CharacterDatabase.Execute("TRUNCATE TABLE daily_players_reports;");
|
||||
}
|
||||
|
||||
void AnticheatMgr::ResetDailyReportStates()
|
||||
{
|
||||
for (AnticheatPlayersDataMap::iterator it = m_Players.begin(); it != m_Players.end(); ++it)
|
||||
|
||||
Reference in New Issue
Block a user