mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
Add GMSummonPlayer Config Option (#643)
This commit is contained in:
@@ -688,12 +688,16 @@ public:
|
||||
}
|
||||
else if (map->IsDungeon())
|
||||
{
|
||||
// pussywizard: prevent unbinding normal player's perm bind by just summoning him >_>
|
||||
if (!target->GetSession()->GetSecurity())
|
||||
// Allow GM to summon players or only other GM accounts inside instances.
|
||||
if (!sWorld->getBoolConfig(CONFIG_INSTANCE_GMSUMMON_PLAYER))
|
||||
{
|
||||
handler->PSendSysMessage("Only GMs can be summoned to an instance!");
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
// pussywizard: prevent unbinding normal player's perm bind by just summoning him >_>
|
||||
if (!target->GetSession()->GetSecurity())
|
||||
{
|
||||
handler->PSendSysMessage("Only GMs can be summoned to an instance!");
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Map* destMap = target->GetMap();
|
||||
|
||||
Reference in New Issue
Block a user