using System.Diagnostics; using ONDServer.Net; namespace ONDServer; public static class Program { public static void Main(string[] args) { if (args.Contains("--persistent")){ Server.AutoStop = false; } Server.Start(9012); } public static void Restart() { Console.WriteLine("Game concluded -> restarting server"); Process.Start(new ProcessStartInfo{ FileName = Environment.ProcessPath, UseShellExecute = false }); Environment.Exit(0); } }