Add config option for saving the world when last player exists

This commit is contained in:
Lucas Nicodemus 2015-02-27 00:38:47 -07:00
parent 97d2894773
commit 7d9c960b0f
2 changed files with 5 additions and 1 deletions

View file

@ -1026,7 +1026,8 @@ namespace TShockAPI
// The last player will leave after this hook is executed.
if (Utils.ActivePlayers() == 1)
{
SaveManager.Instance.SaveWorld();
if (Config.SaveWorldOnLastPlayerExit)
SaveManager.Instance.SaveWorld();
SetConsoleTitle(true);
}
}