diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 3963d07..330302e 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -345,15 +345,14 @@ void AnticheatMgr::FlyHackDetection(Player* player, MovementInfo movementInfo) { LOG_INFO("anticheat.module", "ANTICHEAT COUNTER MEASURE:: {} Flight Hack Countered", player->GetName()); } + if (sConfigMgr->GetOption("Anticheat.CM.ALERTCHAT", true)) + { + std::string str = "|cFFFFFC00 FLY HACK COUNTER MEASURE ALERT"; + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); + } BuildReport(player, FLY_HACK_REPORT); } - if (sConfigMgr->GetOption("Anticheat.CM.ALERTCHAT", true)) - { - std::string str = "|cFFFFFC00 FLY HACK COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); - } - BuildReport(player, FLY_HACK_REPORT); }