refactor(Core/cs_reload): Improve page_text(_locale) output (#3115)
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1591646826613634700');
|
||||||
|
|
||||||
|
UPDATE `command` SET `help` = "Syntax: .reload page_text\r\nReload page_text table.\nYou need to delete your client cache or change the cache number in the config in order for your players see the changes." WHERE `name` = "reload page_text";
|
||||||
|
UPDATE `command` SET `help` = "Syntax: .reload page_text_locale\r\nReload page_text_locale table.\nYou need to delete your client cache or change the cache number in config in order for your players see the changes." WHERE `name` = "reload page_text_locale";
|
||||||
@@ -930,6 +930,7 @@ public:
|
|||||||
sLog->outString("Re-Loading Page Texts...");
|
sLog->outString("Re-Loading Page Texts...");
|
||||||
sObjectMgr->LoadPageTexts();
|
sObjectMgr->LoadPageTexts();
|
||||||
handler->SendGlobalGMSysMessage("DB table `page_texts` reloaded.");
|
handler->SendGlobalGMSysMessage("DB table `page_texts` reloaded.");
|
||||||
|
handler->GetSession()->SendNotification("You need to delete your client cache or change the cache number in config in order for your players see the changes.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1131,6 +1132,7 @@ public:
|
|||||||
sLog->outString("Re-Loading Page Text Locale ... ");
|
sLog->outString("Re-Loading Page Text Locale ... ");
|
||||||
sObjectMgr->LoadPageTextLocales();
|
sObjectMgr->LoadPageTextLocales();
|
||||||
handler->SendGlobalGMSysMessage("DB table `page_text_locale` reloaded.");
|
handler->SendGlobalGMSysMessage("DB table `page_text_locale` reloaded.");
|
||||||
|
handler->GetSession()->SendNotification("You need to delete your client cache or change the cache number in config in order for your players see the changes.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user