private static void GameShutdown() { StateManager.Shutdown(); OutputLog.Shutdown(); Timers.TimerStop(); Timers.ShutdownFailsafe(); StopServer.ShuttingDown = true; }
public static void Stop() { Log.Out("[SERVERTOOLS] Running shutdown."); Timers.TimerStop(); Process process = Process.GetCurrentProcess(); if (process != null) { process.Kill(); } }
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 { StateManager.Save(); OutputLog.Shutdown(); Timers.TimerStop(); Timers.ShutdownFailsafe(); StopServer.ShuttingDown = true; } catch (Exception e) { Log.Out(string.Format("[SERVERTOOLS] Error in API.GameShutdown: {0}", e.Message)); } }