From 6f9a57751ecaa0ec9920e300503ea27c0853c41c Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Fri, 1 Nov 2013 17:38:54 +0100 Subject: [PATCH] We can't schedule tasks in onDisable() --- src/main/java/com/gmail/nossr50/mcMMO.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index e4822de29..5025e899c 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -223,8 +223,6 @@ public class mcMMO extends JavaPlugin { getLogger().severe(e.toString()); } } - - new CleanBackupsTask().runTaskAsynchronously(mcMMO.p); } debug("Was disabled."); // How informative! @@ -402,6 +400,9 @@ public class mcMMO extends JavaPlugin { long saveIntervalTicks = Config.getInstance().getSaveInterval() * 1200; new SaveTimerTask().runTaskTimer(this, saveIntervalTicks, saveIntervalTicks); + // Cleanup the backups folder + new CleanBackupsTask().runTaskAsynchronously(mcMMO.p); + // Bleed timer (Runs every two seconds) new BleedTimerTask().runTaskTimer(this, 2 * Misc.TICK_CONVERSION_FACTOR, 2 * Misc.TICK_CONVERSION_FACTOR);