18 lines
No EOL
493 B
C#
18 lines
No EOL
493 B
C#
using System.Diagnostics;
|
|
|
|
namespace FNAF_Server;
|
|
|
|
public 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);
|
|
}
|
|
} |