Adds some broadcasting on map saves
This commit is contained in:
parent
72bc9a9afe
commit
80ca8509a3
2 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ namespace TShockAPI
|
|||
if (worldpath != null && !Directory.Exists(worldpath))
|
||||
Directory.CreateDirectory(worldpath);
|
||||
|
||||
Tools.Broadcast("Server map saving, potential lag spike");
|
||||
WorldGen.saveWorld();
|
||||
|
||||
Console.WriteLine("World backed up");
|
||||
|
|
|
|||
|
|
@ -911,6 +911,7 @@ namespace TShockAPI
|
|||
|
||||
private static void Save(CommandArgs args)
|
||||
{
|
||||
Tools.Broadcast("Server map saving, potential lag spike");
|
||||
WorldGen.saveWorld();
|
||||
args.Player.SendMessage("World saved.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue