SSI saves on /save
This commit is contained in:
parent
23b02fb0c6
commit
190977c422
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue