From ed0ad7e75171ab44604fe7da8d8a00ae1f1c1f18 Mon Sep 17 00:00:00 2001 From: high Date: Sat, 25 Jun 2011 00:46:24 -0400 Subject: [PATCH] Added console command "autosave" which toggles autosaving --- TShockAPI/TShock.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 1ae46ca2..d231afad 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -368,6 +368,12 @@ namespace TShockAPI { Log.Info(string.Format("Server said: {0}", text.Remove(0, 4))); } + else if (text == "autosave") + { + Main.autoSave = ConfigurationManager.AutoSave = !ConfigurationManager.AutoSave; + Log.ConsoleInfo("AutoSave " + (ConfigurationManager.AutoSave ? "Enabled" : "Disabled")); + e.Handled = true; + } else if (text.StartsWith("/")) { if (Commands.HandleCommand(TSPlayer.Server, text))