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

@ -6,6 +6,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
* Fixed a bug where /user group failing would output no error. (@nicatronTg)
* Fixed a bug where /user group would fail. @(Enerdy)
* Added the ability to disable backup autosave messages. (@nicatronTg)
## TShock 4.3.0.0

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();

View file

@ -436,6 +436,8 @@ namespace TShockAPI
[Description("Enable the DCU. Very dangerous; can destroy world without consequence.")] public bool
VeryDangerousDoNotChangeEnableDrillContainmentUnit = false;
[Description("Show backup autosave messages.")] public bool ShowBackupAutosaveMessages = true;
/// <summary>
/// Reads a configuration file from a given path
/// </summary>