public static void ReloadTimers() { if (timers != null) { timers.Dispose(); } double save = Double.Parse(Config.GetValue("Config", "saveInterval")); double ads = Double.Parse(Config.GetValue("Config", "broadcastInterval")); timers = new ServerTimers(save, ads); timers.Start(); }
public static void ReloadTimers() { if (timers != null) timers.Dispose(); var saver = Config.GetInstance().GetValue("Config", "saveInterval", "180000"); if (saver != null) { double save = Double.Parse(saver); timers = new ServerTimers(save); timers.Start(); } }
public static void ReloadTimers() { if (timers != null) { timers.Dispose(); } var saver = Config.GetInstance().GetValue("Config", "saveInterval", "180000"); if (saver != null) { double save = Double.Parse(saver); timers = new ServerTimers(save); timers.Start(); } }
public static void ReloadTimers() { if (timers != null) { timers.Dispose(); } var saver = Config.GetInstance().GetValue("Config", "saveInterval", "180000"); var broadcast = Config.GetInstance().GetValue("Config", "broadcastInterval", "600000"); if (saver != null && broadcast != null) { double save = Double.Parse(saver); double ads = Double.Parse(broadcast); timers = new ServerTimers(save, ads); timers.Start(); } }
/// <summary> /// Initializes the <see cref="Loader"/> class. /// </summary> internal static void Init() { if (Loader.Initialized) { return; } Loader.Random = new LogicRandom(); LogicCommandManager.Init(); MessageManager.Init(); Fingerprint.Init(); CSV.Init(); Globals.Init(); if (Settings.Database == DBMS.Mongo) { Mongo.Init(); } Connections.Init(); Avatars.Init(); Alliances.Init(); Battles.Init(); ServerConnection.Init(); APIHandler.Init(); ServerTimers.Init(); Loader.Initialized = true; EventsHandler.Init(); Tests.Init(); }