From 69dd5769e4f9266a2a5724b09e98e13ffd7e9e15 Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Sat, 9 Mar 2013 17:08:01 -0500 Subject: [PATCH] Correct format and comment --- src/main/java/com/gmail/nossr50/mcMMO.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 89be61427..d6315767f 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -176,10 +176,12 @@ public class mcMMO extends JavaPlugin { catch (NullPointerException e) {} getServer().getScheduler().cancelTasks(this); // This removes our tasks + if (Config.getInstance().getUseMySQL()) { - queueManager.disable(); - queueManager = null; + queueManager.disable(); // Disable and stop queue thread + queueManager = null; // null static variable } + HandlerList.unregisterAll(this); // Cancel event registrations if (Config.getInstance().getBackupsEnabled()) {