MCSharp.Server.ForceExit C# (CSharp) Method

ForceExit() public static method

public static ForceExit ( ) : void
return void
        public static void ForceExit()
        {
            foreach (var player in Player.players)
            {
                player.Kick("Server shutdown.");
            }
            Player.connections.ForEach(delegate(Player p)
            {
                p.Kick("Server shutdown.");
            });

            if (physThread != null)
                physThread.Abort();
            if (process != null)
            {
                Logger.Log("Killing Process...", LogType.Error);
                process.Kill();
            }
        }