Core: Allow toggling ticketsystem on/off by config-setting (patch by leak)

Closes issue 4744.

--HG--
branch : trunk
This commit is contained in:
click
2010-11-14 00:29:34 +01:00
parent 9ba52c474b
commit c0536f374a
9 changed files with 37 additions and 2 deletions
+5
View File
@@ -400,6 +400,9 @@ void World::LoadConfigSettings(bool reload)
SetPlayerAmountLimit(sConfig.GetIntDefault("PlayerLimit", 100));
SetMotd(sConfig.GetStringDefault("Motd", "Welcome to a Trinity Core Server."));
///- Read ticket system setting from the config file
m_bool_configs[CONFIG_ALLOW_TICKETS] = sConfig.GetBoolDefault("AllowTickets", true);
///- Get string for new logins (newly created characters)
SetNewCharString(sConfig.GetStringDefault("PlayerStart.String", ""));
@@ -1670,6 +1673,8 @@ void World::SetInitialWorldSettings()
sLog.outString("Starting Arena Season...");
sGameEventMgr.StartArenaSeason();
sTicketMgr.Initialize();
sLog.outString("Loading World States..."); // must be loaded before battleground and outdoor PvP
LoadWorldStates();
+1
View File
@@ -161,6 +161,7 @@ enum WorldBoolConfigs
CONFIG_CHATLOG_BGROUND,
CONFIG_DUNGEON_FINDER_ENABLE,
CONFIG_AUTOBROADCAST,
CONFIG_ALLOW_TICKETS,
BOOL_CONFIG_VALUE_COUNT
};