add writelog to the teleporthack detection

This commit is contained in:
MDIC
2022-02-13 12:45:44 -05:00
parent f98708fae4
commit 6c628420e8

View File

@@ -212,7 +212,9 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn
data << str;
sWorld->SendGlobalGMMessage(&data);
}
LOG_INFO("module", "AnticheatMgr:: Teleport-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString());
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", false))
LOG_INFO("module", "AnticheatMgr:: Teleport-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString());
BuildReport(player, TELEPORT_HACK_REPORT);
}
else if (player->CanTeleport())