mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
fix (cmd): crash fix from console cmd
This commit is contained in:
@@ -181,8 +181,10 @@ public:
|
||||
ObjectGuid guid = player->GetGUID();
|
||||
|
||||
if (!player)
|
||||
{
|
||||
player = PlayerIdentifier::FromTarget(handler);
|
||||
if (!player)
|
||||
}
|
||||
if (!player || !player->IsConnected())
|
||||
{
|
||||
handler->SendSysMessage(LANG_PLAYER_NOT_FOUND);
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -210,6 +212,7 @@ public:
|
||||
handler->PSendSysMessage("Teleport Reports: %u || Climb Reports: %u", teleport_reports, climb_reports);
|
||||
handler->PSendSysMessage("Ignore Control Reports: %u || Ignore Z-Axis Reports: %u", ignorecontrol_reports, zaxis_reports);
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
static bool HandleAntiCheatGlobalCommand(ChatHandler* handler)
|
||||
|
||||
Reference in New Issue
Block a user