summaryrefslogtreecommitdiff
path: root/src/scripts/Commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/Commands')
-rw-r--r--src/scripts/Commands/cs_reload.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/scripts/Commands/cs_reload.cpp b/src/scripts/Commands/cs_reload.cpp
index 901b6360b9..7d870d9a5d 100644
--- a/src/scripts/Commands/cs_reload.cpp
+++ b/src/scripts/Commands/cs_reload.cpp
@@ -13,6 +13,7 @@ EndScriptData */
#include "AchievementMgr.h"
#include "AuctionHouseMgr.h"
+#include "BattlegroundMgr.h"
#include "Chat.h"
#include "CreatureTextMgr.h"
#include "DisableMgr.h"
@@ -61,6 +62,7 @@ public:
{ "areatrigger_tavern", SEC_ADMINISTRATOR, true, &HandleReloadAreaTriggerTavernCommand, "" },
{ "areatrigger_teleport", SEC_ADMINISTRATOR, true, &HandleReloadAreaTriggerTeleportCommand, "" },
{ "autobroadcast", SEC_ADMINISTRATOR, true, &HandleReloadAutobroadcastCommand, "" },
+ { "battleground_template", SEC_ADMINISTRATOR, true, &HandleReloadBattlegroundTemplate, "" },
{ "command", SEC_ADMINISTRATOR, true, &HandleReloadCommandCommand, "" },
{ "conditions", SEC_ADMINISTRATOR, true, &HandleReloadConditions, "" },
{ "config", SEC_ADMINISTRATOR, true, &HandleReloadConfigCommand, "" },
@@ -179,6 +181,15 @@ public:
HandleReloadVehicleTemplateAccessoryCommand(handler, "");
HandleReloadAutobroadcastCommand(handler, "");
+ HandleReloadBattlegroundTemplate(handler, "");
+ return true;
+ }
+
+ static bool HandleReloadBattlegroundTemplate(ChatHandler* handler, char const* /*args*/)
+ {
+ sLog->outString("Re-Loading Battleground Templates...");
+ sBattlegroundMgr->CreateInitialBattlegrounds();
+ handler->SendGlobalGMSysMessage("DB table `battleground_template` reloaded.");
return true;
}