Core/Game: Move scheduled map scripts counter methods into MapManager
* Since those have nothing to do with core scripts and are not wished inside the ScriptMgr
This commit is contained in:
1 parent
9078085595
commit
436cdfd7c9
9 files changed
+901
-19
No files matched your search
@@ -249,7 +249,7 @@ public:
|
||||
|
||||
static bool HandleReloadAllScriptsCommand(ChatHandler* handler, const char* /*args*/)
|
||||
{
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
if (sMapMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->PSendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -883,7 +883,7 @@ public:
|
||||
|
||||
static bool HandleReloadEventScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
if (sMapMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -903,7 +903,7 @@ public:
|
||||
|
||||
static bool HandleReloadWpScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
if (sMapMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -936,7 +936,7 @@ public:
|
||||
|
||||
static bool HandleReloadSpellScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
if (sMapMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
Reference in new issue
Block a user