From 8ddd904324b61df889b054b9cdb5d315ab2d143e Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Tue, 19 Jan 2021 00:52:32 +0100 Subject: [PATCH] refactor(Core/cs_reload): Improve page_text(_locale) output (#3115) --- data/sql/updates/pending_db_world/rev_1591646826613634700.sql | 4 ++++ src/server/scripts/Commands/cs_reload.cpp | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1591646826613634700.sql diff --git a/data/sql/updates/pending_db_world/rev_1591646826613634700.sql b/data/sql/updates/pending_db_world/rev_1591646826613634700.sql new file mode 100644 index 000000000..3643dab59 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1591646826613634700.sql @@ -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"; diff --git a/src/server/scripts/Commands/cs_reload.cpp b/src/server/scripts/Commands/cs_reload.cpp index 3a18aaf7f..1185a7265 100644 --- a/src/server/scripts/Commands/cs_reload.cpp +++ b/src/server/scripts/Commands/cs_reload.cpp @@ -930,6 +930,7 @@ public: sLog->outString("Re-Loading Page Texts..."); sObjectMgr->LoadPageTexts(); 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; } @@ -1131,6 +1132,7 @@ public: sLog->outString("Re-Loading Page Text Locale ... "); sObjectMgr->LoadPageTextLocales(); 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; }