Make purge task run options configurable. Also adds ability to disable

the task entirely.
This commit is contained in:
gmcferrin
2013-01-10 19:58:25 -05:00
parent ce42da5806
commit 6d9ef91315
3 changed files with 14 additions and 2 deletions

View File

@ -35,6 +35,7 @@ public class Config extends ConfigLoader {
public int getSaveInterval() { return config.getInt("General.Save_Interval", 10); }
public boolean getStatsTrackingEnabled() { return config.getBoolean("General.Stats_Tracking", true); }
public boolean getEventCallbackEnabled() { return config.getBoolean("General.Event_Callback", true); }
public int getPurgeInterval() { return config.getInt("General.Purge_Interval", 0); }
/* mySQL */
public boolean getUseMySQL() { return config.getBoolean("MySQL.Enabled", false); }