feat (module): Include Latency with Log Spam

This commit is contained in:
MDIC
2022-04-29 17:34:14 -04:00
parent ec561e459b
commit 6737879221
3 changed files with 57 additions and 23 deletions

View File

@@ -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);