mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-16 02:10:30 +00:00
feat (module): Include Latency with Log Spam
This commit is contained in:
@@ -200,7 +200,10 @@ public:
|
||||
uint32 teleport_reports = sAnticheatMgr->GetTypeReports(guid, 6);
|
||||
uint32 ignorecontrol_reports = sAnticheatMgr->GetTypeReports(guid, 7);
|
||||
uint32 zaxis_reports = sAnticheatMgr->GetTypeReports(guid, 8);
|
||||
handler->PSendSysMessage("Information about player %s", player->GetName().c_str());
|
||||
Player* playerTarget = player->GetConnectedPlayer();
|
||||
uint32 latency = 0;
|
||||
latency = playerTarget->GetSession()->GetLatency();
|
||||
handler->PSendSysMessage("Information about player %s || Latency %u ms", player->GetName().c_str(), latency);
|
||||
handler->PSendSysMessage("Average: %f || Total Reports: %u ", average, total_reports);
|
||||
handler->PSendSysMessage("Speed Reports: %u || Fly Reports: %u || Jump Reports: %u ", speed_reports, fly_reports, jump_reports);
|
||||
handler->PSendSysMessage("Walk On Water Reports: %u || Teleport To Plane Reports: %u", waterwalk_reports, teleportplane_reports);
|
||||
|
||||
Reference in New Issue
Block a user