private static void GameShutdown() { try { OutputLog.Shutdown(); RegionReset.Exec(); Timers.TimerStop(); Timers.ShutdownFailsafe(); } catch (Exception e) { Log.Out(string.Format("[SERVERTOOLS] Error in API.GameShutdown: {0}", e.Message)); } }
private static void GameShutdown() { try { PersistentOperations.Shutdown_Initiated = true; if (WebAPI.IsEnabled && WebAPI.IsRunning) { WebAPI.Unload(); } Timers.CoreTimerStop(); RegionReset.Exec(); Phrases.Unload(); CommandList.Unload(); OutputLog.Shutdown(); } catch (Exception e) { Log.Out(string.Format("[SERVERTOOLS] Error in API.GameShutdown: {0}", e.Message)); } }