Added config option for how often to save ssi, and applied that to the save checker.
Changed the OnTileEdit hook to take a player as well, so we know who is doing the edit. Changed the output of the Debug folder to go back to bin\Debug\ since I dont work 3 directories about TShock.
This commit is contained in:
parent
54e822fb34
commit
46a653da99
4 changed files with 14 additions and 6 deletions
|
|
@ -446,7 +446,7 @@ namespace TShockAPI
|
|||
LastCheck = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
if ((DateTime.UtcNow - LastSave).TotalMinutes >= 15)
|
||||
if ((DateTime.UtcNow - LastSave).TotalMinutes >= Config.ServerSideInventorySave)
|
||||
{
|
||||
foreach (TSPlayer player in Players)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue