(Hopefully) Fix NPE, delay PurgeTask start for a few seconds just to be

safe.
This commit is contained in:
gmcferrin
2013-01-10 20:49:33 -05:00
parent b554fb342a
commit f7e56d9833
2 changed files with 2 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ public class mcMMO extends JavaPlugin {
//Old & Powerless User remover
int purgeInterval = Config.getInstance().getPurgeInterval();
if (purgeInterval == 0) {
scheduler.runTask(this, new UserPurgeTask(this));
scheduler.scheduleSyncDelayedTask(this, new UserPurgeTask(this), 40); //Start 2 seconds after startup.
}
else if (purgeInterval > 0) {
scheduler.scheduleSyncRepeatingTask(this, new UserPurgeTask(this), 0, purgeInterval * 60L * 60L * 20L);