fix (logging) Missing WriteLog conf for jump hack

added in Missing WriteLog conf for jump hack to be consistent with other detection logging in the anticheat module
This commit is contained in:
MDIC
2022-06-06 07:31:01 -04:00
parent 12f7515467
commit 3a601f80bf

View File

@@ -60,12 +60,15 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo /* movementInf
ObjectGuid key = player->GetGUID(); ObjectGuid key = player->GetGUID();
if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && opcode == MSG_MOVE_JUMP) if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && opcode == MSG_MOVE_JUMP)
{
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
{ {
uint32 latency = 0; uint32 latency = 0;
latency = player->GetSession()->GetLatency(); latency = player->GetSession()->GetLatency();
BuildReport(player, JUMP_HACK_REPORT);
LOG_INFO("anticheat.module", "AnticheatMgr:: Jump-Hack detected player {} ({}) - Latency: {} ms", player->GetName(), player->GetGUID().ToString(), latency); LOG_INFO("anticheat.module", "AnticheatMgr:: Jump-Hack detected player {} ({}) - Latency: {} ms", player->GetName(), player->GetGUID().ToString(), latency);
} }
BuildReport(player, JUMP_HACK_REPORT);
}
} }
void AnticheatMgr::WalkOnWaterHackDetection(Player* player, MovementInfo movementInfo) void AnticheatMgr::WalkOnWaterHackDetection(Player* player, MovementInfo movementInfo)