Save player data on backups
Server Side Inventory security improvements, blocking trashcan and "banks" items CovertCorruption is now more thorough. PvP Modes, normal, always, disabled now configurable Initial group prefix/suffix implementation Range checks reworked, Killing ice blocks now ignored for ice rod. Adding a NPC name to item banlist will block it from spawning Added configs to disable snowballs and clown bombs from npcs.
This commit is contained in:
parent
fc735ba829
commit
8cf298ad85
10 changed files with 133 additions and 30 deletions
|
|
@ -66,6 +66,15 @@ namespace TShockAPI
|
|||
|
||||
TShock.Utils.Broadcast("Server map saving, potential lag spike");
|
||||
Console.WriteLine("Backing up world...");
|
||||
|
||||
foreach (TSPlayer player in TShock.Players)
|
||||
{
|
||||
if (player.IsLoggedIn)
|
||||
{
|
||||
TShock.InventoryDB.InsertPlayerData(player);
|
||||
}
|
||||
}
|
||||
|
||||
Thread SaveWorld = new Thread(TShock.Utils.SaveWorld);
|
||||
SaveWorld.Start();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue