diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ce94cbb..091f0b92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/TShockAPI/BackupManager.cs b/TShockAPI/BackupManager.cs index deb22658..f8f6b449 100644 --- a/TShockAPI/BackupManager.cs +++ b/TShockAPI/BackupManager.cs @@ -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(); diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index bde5dad4..adcea438 100755 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -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; + /// /// Reads a configuration file from a given path ///