add (logging): Fly hack counter measure log

This commit is contained in:
M'Dic
2023-03-29 14:56:02 -04:00
parent 9b4aae9fa8
commit 5eaccee9e0

View File

@@ -341,6 +341,10 @@ void AnticheatMgr::FlyHackDetection(Player* player, MovementInfo movementInfo)
cheater << cheatertarget->GetPackGUID(); cheater << cheatertarget->GetPackGUID();
cheater << uint32(0); cheater << uint32(0);
cheatertarget->SendMessageToSet(&cheater, true); cheatertarget->SendMessageToSet(&cheater, true);
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
{
LOG_INFO("anticheat.module", "ANTICHEAT COUNTER MEASURE:: {} Flight Hack Countered", player->GetName());
}
} }
if (sConfigMgr->GetOption<bool>("Anticheat.CM.ALERTCHAT", true)) if (sConfigMgr->GetOption<bool>("Anticheat.CM.ALERTCHAT", true))