Core/Misc: move scheduled scripts counter to ScriptMgr (which is more logical, isn't it?)
This commit is contained in:
@@ -248,7 +248,7 @@ public:
|
||||
|
||||
static bool HandleReloadAllScriptsCommand(ChatHandler* handler, const char* /*args*/)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->PSendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -946,7 +946,7 @@ public:
|
||||
|
||||
static bool HandleReloadGossipScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -966,7 +966,7 @@ public:
|
||||
|
||||
static bool HandleReloadGameObjectScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -986,7 +986,7 @@ public:
|
||||
|
||||
static bool HandleReloadEventScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -1006,7 +1006,7 @@ public:
|
||||
|
||||
static bool HandleReloadWpScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -1051,7 +1051,7 @@ public:
|
||||
|
||||
static bool HandleReloadQuestEndScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -1071,7 +1071,7 @@ public:
|
||||
|
||||
static bool HandleReloadQuestStartScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -1091,7 +1091,7 @@ public:
|
||||
|
||||
static bool HandleReloadSpellScriptsCommand(ChatHandler* handler, const char* args)
|
||||
{
|
||||
if (sWorld->IsScriptScheduled())
|
||||
if (sScriptMgr->IsScriptScheduled())
|
||||
{
|
||||
handler->SendSysMessage("DB scripts used currently, please attempt reload later.");
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
Reference in New Issue
Block a user