Add config option to disable autosave messages

This commit is contained in:
Lucas Nicodemus 2015-07-05 18:36:05 -06:00
parent b8dcbf1f4a
commit 3db238c2fc
3 changed files with 8 additions and 1 deletions

View file

@ -61,7 +61,11 @@ namespace TShockAPI
if (worldpath != null && !Directory.Exists(worldpath))
Directory.CreateDirectory(worldpath);
TSPlayer.All.SendInfoMessage("Server map saving, potential lag spike.");
if (TShock.Config.ShowBackupAutosaveMessages)
{
TSPlayer.All.SendInfoMessage("Server map saving, potential lag spike.");
}
Console.WriteLine("Backing up world...");
SaveManager.Instance.SaveWorld();