Clean up world save to be less alarmist
This commit is contained in:
parent
d6a6b1514b
commit
cdb1953f36
2 changed files with 5 additions and 3 deletions
|
|
@ -4044,7 +4044,6 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
tsply.SaveServerCharacter();
|
tsply.SaveServerCharacter();
|
||||||
}
|
}
|
||||||
args.Player.SendSuccessMessage("Save succeeded.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Settle(CommandArgs args)
|
private static void Settle(CommandArgs args)
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ namespace TShockAPI
|
||||||
// These can be caused by an unexpected error such as a bad or out of date plugin
|
// These can be caused by an unexpected error such as a bad or out of date plugin
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
TShock.Utils.Broadcast("Saving world. Momentary lag might result from this.", Color.Red);
|
TShock.Utils.Broadcast("Saving world...", Color.Yellow);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
@ -130,7 +130,10 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
WorldFile.SaveWorld(task.resetTime);
|
WorldFile.SaveWorld(task.resetTime);
|
||||||
|
|
||||||
|
if (TShock.Config.AnnounceSave)
|
||||||
TShock.Utils.Broadcast("World saved.", Color.Yellow);
|
TShock.Utils.Broadcast("World saved.", Color.Yellow);
|
||||||
|
|
||||||
TShock.Log.Info(string.Format("World saved at ({0})", Main.worldPathName));
|
TShock.Log.Info(string.Format("World saved at ({0})", Main.worldPathName));
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue