From a800359e0b40744a4cb8449487be3511cbd80d5c Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 19 Jun 2014 02:59:08 +0100 Subject: [PATCH] Force listener cleanup on plugin disable. --- Essentials/src/com/earth2me/essentials/Essentials.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 61f42931a..fbe874f16 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -329,6 +329,8 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials Economy.setEss(null); Trade.closeLog(); getUserMap().getUUIDMap().forceWriteUUIDMap(); + + HandlerList.unregisterAll(this); } @Override