mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Add option to configure report save time
This commit is contained in:
@@ -44,6 +44,12 @@ Anticheat.LoginMessage = 0
|
||||
|
||||
Anticheat.WriteLog = 0
|
||||
|
||||
# Anticheat.SaveReportsTime
|
||||
# Description: Set the time between each report save in seconds
|
||||
# Default: 60 - (seconds)
|
||||
|
||||
Anticheat.SaveReportsTime = 60
|
||||
|
||||
# Anticheat.Detect
|
||||
# Description: It represents which detections are enabled (ClimbHack disabled by default).
|
||||
# Default: 1 - (Enabled)
|
||||
|
||||
@@ -43,8 +43,9 @@ public:
|
||||
}
|
||||
if (sWorld->GetUptime() > lastIterationPlayer)
|
||||
{
|
||||
lastIterationPlayer = sWorld->GetUptime() + 30;//TODO: change 30 secs static to a configurable option
|
||||
lastIterationPlayer = sWorld->GetUptime() + sConfigMgr->GetIntDefault("Anticheat.SaveReportsTime", 60);
|
||||
sLog->outString( "Saving reports for %u players.", sWorld->GetPlayerCount());
|
||||
|
||||
for (SessionMap::const_iterator itr = sWorld->GetAllSessions().begin(); itr != sWorld->GetAllSessions().end(); ++itr)
|
||||
if (Player* plr = itr->second->GetPlayer())
|
||||
sAnticheatMgr->SavePlayerData(plr);
|
||||
|
||||
Reference in New Issue
Block a user