From 209bc50ef5daee3456861e06f194a9924beb3253 Mon Sep 17 00:00:00 2001 From: StygianTheBest Date: Tue, 19 Sep 2017 14:30:23 -0400 Subject: Add GMSummonPlayer Config Option (#643) --- src/scripts/Commands/cs_misc.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/scripts/Commands/cs_misc.cpp') diff --git a/src/scripts/Commands/cs_misc.cpp b/src/scripts/Commands/cs_misc.cpp index f7eb61d7d8..edf4851914 100644 --- a/src/scripts/Commands/cs_misc.cpp +++ b/src/scripts/Commands/cs_misc.cpp @@ -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(); -- cgit v1.2.3