Add GMSummonPlayer Config Option (#643)
This commit is contained in:
parent
d19b61a755
commit
209bc50ef5
4 changed files with 20 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue