Added console command "autosave" which toggles autosaving
This commit is contained in:
parent
f501212dfe
commit
ed0ad7e751
1 changed files with 6 additions and 0 deletions
|
|
@ -368,6 +368,12 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
Log.Info(string.Format("Server said: {0}", text.Remove(0, 4)));
|
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("/"))
|
else if (text.StartsWith("/"))
|
||||||
{
|
{
|
||||||
if (Commands.HandleCommand(TSPlayer.Server, text))
|
if (Commands.HandleCommand(TSPlayer.Server, text))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue