feat(DB/Module): introduce module_string table (#19475)
This commit is contained in:
parent
67010623a0
commit
4b63aa9015
9 changed files with 176 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ public:
|
|||
{ "spell_threats", HandleReloadSpellThreatsCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "spell_group_stack_rules", HandleReloadSpellGroupStackRulesCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "player_loot_template", HandleReloadLootTemplatesPlayerCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "module_string", HandleReloadModuleStringCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "acore_string", HandleReloadAcoreStringCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "warden_action", HandleReloadWardenactionCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
{ "waypoint_scripts", HandleReloadWpScriptsCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||
|
|
@ -716,6 +717,17 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool HandleReloadModuleStringCommand(ChatHandler* handler)
|
||||
{
|
||||
LOG_INFO("server.loading", "Reloading module_string Table!");
|
||||
sObjectMgr->LoadModuleStrings();
|
||||
handler->SendGlobalGMSysMessage("DB table `module_string` reloaded.");
|
||||
LOG_INFO("server.loading", "Reloading module_string_locale Table!");
|
||||
sObjectMgr->LoadModuleStringsLocale();
|
||||
handler->SendGlobalGMSysMessage("DB table `module_string_locale` reloaded.");
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleReloadAcoreStringCommand(ChatHandler* handler)
|
||||
{
|
||||
LOG_INFO("server.loading", "Reloading acore_string Table!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue