Example #1
0
 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();
            }
        }
Example #3
0
 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));
     }
 }
Example #4
0
 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));
     }
 }