Add config option to disable autosave messages
This commit is contained in:
parent
b8dcbf1f4a
commit
3db238c2fc
3 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue