diff --git a/src/server/game/Anticheat/AnticheatMgr.cpp b/src/server/game/Anticheat/AnticheatMgr.cpp index f447cb4846..34d6e47291 100644 --- a/src/server/game/Anticheat/AnticheatMgr.cpp +++ b/src/server/game/Anticheat/AnticheatMgr.cpp @@ -312,7 +312,7 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo) if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 TIME MANIPULATION COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } timeDiff = 1; BuildReport(player, COUNTER_MEASURES_REPORT); @@ -335,7 +335,7 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo) if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 TIME MANIPULATION COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } timeDiff = 1; BuildReport(player, COUNTER_MEASURES_REPORT); @@ -386,7 +386,7 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo) if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 SPEED HACK COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } BuildReport(player, COUNTER_MEASURES_REPORT); } @@ -452,7 +452,7 @@ void AnticheatMgr::FlyHackDetection(Player* player, MovementInfo movementInfo) if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 FLY HACK COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_WRITELOG)) { @@ -517,7 +517,7 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 JUMP HACK COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } BuildReport(player, COUNTER_MEASURES_REPORT); } @@ -602,7 +602,7 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 ADVANCE JUMP HACK COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } BuildReport(player, COUNTER_MEASURES_REPORT); } @@ -831,7 +831,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 TELEPORT COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } player->TeleportTo(player->GetMapId(), lastX, lastY, lastZ, player->GetOrientation()); BuildReport(player, COUNTER_MEASURES_REPORT); @@ -1088,7 +1088,7 @@ void AnticheatMgr::ZAxisHackDetection(Player* player, MovementInfo movementInfo) if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 IGNORE-Z HACK COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } BuildReport(player, COUNTER_MEASURES_REPORT); } @@ -1301,7 +1301,7 @@ void AnticheatMgr::CheckBGOriginPositions(Player* player) if (sWorld->getBoolConfig(CONFIG_ANTICHEAT_CM_ALERTCHAT)) { std::string str = "|cFFFFFC00 BG START SPOT COUNTER MEASURE ALERT"; - sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName().c_str(), player->GetName().c_str()); + sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str()); } player->TeleportTo(player->GetMapId(), startPos->GetPositionX(), startPos->GetPositionY(), startPos->GetPositionZ(), startPos->GetOrientation()); }