mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
feat(DB/Module): introduce module_string table (#19475)
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user