From d6f0c0ecf55d11146c2f1cb02843d91f21d44149 Mon Sep 17 00:00:00 2001 From: k0rd Date: Tue, 31 Jan 2012 23:37:59 -0500 Subject: [PATCH] /restart doesn't work for mono.. yet --- TShockAPI/Commands.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index ce920f03..5eb46e83 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1007,7 +1007,9 @@ namespace TShockAPI //Added restart command private static void Restart(CommandArgs args) { - + if (Main.runningMono){ + Log.ConsoleInfo("Sorry, this command has not yet been implemented in Mono"); + }else{ if (TShock.Config.ServerSideInventory) { foreach (TSPlayer player in TShock.Players) @@ -1024,7 +1026,7 @@ namespace TShockAPI Netplay.disconnect = true; System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); Environment.Exit(0); - } + }} private static void OffNoSave(CommandArgs args) { @@ -3452,4 +3454,4 @@ namespace TShockAPI #endregion Cheat Comamnds } -} \ No newline at end of file +}