SSI saves on /save

This commit is contained in:
Lucas Nicodemus 2012-05-25 22:55:52 -06:00
parent 23b02fb0c6
commit 190977c422

View file

@ -1045,7 +1045,7 @@ namespace TShockAPI
{ {
if (player != null && player.IsLoggedIn && !player.IgnoreActionsForClearingTrashCan) if (player != null && player.IsLoggedIn && !player.IgnoreActionsForClearingTrashCan)
{ {
TShock.InventoryDB.InsertPlayerData(player); player.SaveServerInventory();
} }
} }
} }
@ -2182,6 +2182,10 @@ namespace TShockAPI
private static void Save(CommandArgs args) private static void Save(CommandArgs args)
{ {
SaveManager.Instance.SaveWorld(false); SaveManager.Instance.SaveWorld(false);
foreach (TSPlayer tsply in TShock.Players)
{
tsply.SaveServerInventory();
}
} }
private static void Settle(CommandArgs args) private static void Settle(CommandArgs args)