From 726d659afca7f8950492370655a3dede5386dfc8 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 31 Mar 2013 11:22:11 +0300 Subject: Fix reloading of Protect --- EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java b/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java index 7ccbd1f92..9389f515f 100644 --- a/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java +++ b/EssentialsProtect/src/net/ess3/protect/EssentialsConnect.java @@ -22,11 +22,13 @@ public class EssentialsConnect } ess = ((BukkitPlugin)essPlugin).getEssentials(); protect = (IProtect)essProtect; - protect.setSettings(new ProtectHolder(ess)); + ProtectHolder settings = new ProtectHolder(ess); + protect.setSettings(settings); + ess.addReloadListener(settings); } public IEssentials getEssentials() { return ess; } -} \ No newline at end of file +} -- cgit v1.2.3