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))
|
if (worldpath != null && !Directory.Exists(worldpath))
|
||||||
Directory.CreateDirectory(worldpath);
|
Directory.CreateDirectory(worldpath);
|
||||||
|
|
||||||
|
Tools.Broadcast("Server map saving, potential lag spike");
|
||||||
WorldGen.saveWorld();
|
WorldGen.saveWorld();
|
||||||
|
|
||||||
Console.WriteLine("World backed up");
|
Console.WriteLine("World backed up");
|
||||||
|
|
|
||||||
|
|
@ -911,6 +911,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
private static void Save(CommandArgs args)
|
private static void Save(CommandArgs args)
|
||||||
{
|
{
|
||||||
|
Tools.Broadcast("Server map saving, potential lag spike");
|
||||||
WorldGen.saveWorld();
|
WorldGen.saveWorld();
|
||||||
args.Player.SendMessage("World saved.");
|
args.Player.SendMessage("World saved.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue