mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
fix (cmd): Jail cmd can now be used from console
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
|||||||
{ "global", SEC_GAMEMASTER, true, &HandleAntiCheatGlobalCommand, "" },
|
{ "global", SEC_GAMEMASTER, true, &HandleAntiCheatGlobalCommand, "" },
|
||||||
{ "player", SEC_GAMEMASTER, true, &HandleAntiCheatPlayerCommand, "" },
|
{ "player", SEC_GAMEMASTER, true, &HandleAntiCheatPlayerCommand, "" },
|
||||||
{ "delete", SEC_ADMINISTRATOR, true, &HandleAntiCheatDeleteCommand, "" },
|
{ "delete", SEC_ADMINISTRATOR, true, &HandleAntiCheatDeleteCommand, "" },
|
||||||
{ "jail", SEC_GAMEMASTER, false, &HandleAnticheatJailCommand, "" },
|
{ "jail", SEC_GAMEMASTER, true, &HandleAnticheatJailCommand, "" },
|
||||||
{ "parole", SEC_ADMINISTRATOR, true, &HandleAnticheatParoleCommand, "" },
|
{ "parole", SEC_ADMINISTRATOR, true, &HandleAnticheatParoleCommand, "" },
|
||||||
{ "purge", SEC_ADMINISTRATOR, true, &HandleAntiCheatPurgeCommand, "" },
|
{ "purge", SEC_ADMINISTRATOR, true, &HandleAntiCheatPurgeCommand, "" },
|
||||||
{ "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" }
|
{ "warn", SEC_GAMEMASTER, true, &HandleAnticheatWarnCommand, "" }
|
||||||
@@ -96,7 +96,10 @@ public:
|
|||||||
Player* pTarget = player->GetConnectedPlayer();
|
Player* pTarget = player->GetConnectedPlayer();
|
||||||
|
|
||||||
// teleport both to jail.
|
// teleport both to jail.
|
||||||
handler->GetSession()->GetPlayer()->TeleportTo(1, 16226.5f, 16403.6f, -64.5f, 3.2f);
|
if (!handler->IsConsole())
|
||||||
|
{
|
||||||
|
handler->GetSession()->GetPlayer()->TeleportTo(1, 16226.5f, 16403.6f, -64.5f, 3.2f);
|
||||||
|
}
|
||||||
|
|
||||||
WorldLocation loc = WorldLocation(1, 16226.5f, 16403.6f, -64.5f, 3.2f);// GM Jail Location
|
WorldLocation loc = WorldLocation(1, 16226.5f, 16403.6f, -64.5f, 3.2f);// GM Jail Location
|
||||||
pTarget->TeleportTo(loc);
|
pTarget->TeleportTo(loc);
|
||||||
|
|||||||
Reference in New Issue
Block a user