Core: Allow toggling ticketsystem on/off by config-setting (patch by leak)
Closes issue 4744. --HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -161,6 +161,7 @@ enum WorldBoolConfigs
|
||||
CONFIG_CHATLOG_BGROUND,
|
||||
CONFIG_DUNGEON_FINDER_ENABLE,
|
||||
CONFIG_AUTOBROADCAST,
|
||||
CONFIG_ALLOW_TICKETS,
|
||||
BOOL_CONFIG_VALUE_COUNT
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user