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:
Zack Piispanen 2012-02-04 16:39:36 -05:00
parent 54e822fb34
commit 46a653da99
4 changed files with 14 additions and 6 deletions

View file

@ -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)
{