diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 6af06d1..a0b5b66 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -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("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())