diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 8492f0e4..b7046560 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -73,11 +73,6 @@ namespace TShockAPI /// LogClear - Determines whether or not the log file should be cleared on initialization. private static bool LogClear; - /// - /// Set by the command line, disables the '/restart' command. - /// - internal static bool NoRestart; - /// Will be set to true once Utils.StopServer() is called. public static bool ShuttingDown; @@ -768,8 +763,7 @@ namespace TShockAPI .AddFlag("-logclear", () => LogClear = true) .AddFlag("-autoshutdown", () => Main.instance.EnableAutoShutdown()) .AddFlag("-dump", () => Utils.Dump()) - .AddFlag("--stats-optout", () => StatTracker.OptOut = true) - .AddFlag("--no-restart", () => NoRestart = true); + .AddFlag("--stats-optout", () => StatTracker.OptOut = true); CliParser.ParseFromSource(parms); }