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:
Zidonuke 2011-12-22 17:32:51 -05:00
parent fc735ba829
commit 8cf298ad85
10 changed files with 133 additions and 30 deletions

View file

@ -13,19 +13,11 @@ namespace TShockAPI
{
Utils Utils = TShock.Utils;
public DateTime lastcheck = DateTime.MinValue;
private bool oneCheckin = false;
readonly int checkinFrequency = 1;
readonly int checkinFrequency = 5;
public void checkin()
{
if (TShock.Config.DisablePlayerCountReporting)
{
if (!oneCheckin)
{
checkin();
oneCheckin = !oneCheckin;
}
} else if ((DateTime.Now - lastcheck).TotalMinutes >= checkinFrequency)
if ((DateTime.Now - lastcheck).TotalMinutes >= checkinFrequency)
{
ThreadPool.QueueUserWorkItem(callHome);
lastcheck = DateTime.Now;