summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_misc.cpp
diff options
context:
space:
mode:
authorStygianTheBest <stygianthebest@protonmail.com>2017-09-19 14:30:23 -0400
committerYehonal <yehonal.azeroth@gmail.com>2017-09-19 20:30:23 +0200
commit209bc50ef5daee3456861e06f194a9924beb3253 (patch)
tree4ae9e4e94c1ba82d120fb394d3cbc72d71d12d03 /src/scripts/Commands/cs_misc.cpp
parentd19b61a755802bffee29dd4f364c989960cbe39e (diff)
Add GMSummonPlayer Config Option (#643)
Diffstat (limited to 'src/scripts/Commands/cs_misc.cpp')
-rw-r--r--src/scripts/Commands/cs_misc.cpp14
1 files changed, 9 insertions, 5 deletions
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();