From a2ed8ea52a8ac5ff44d6ddd55cd6c08a335ff4eb Mon Sep 17 00:00:00 2001 From: snowleo Date: Tue, 10 May 2011 21:53:27 +0000 Subject: [PATCH] IConfExternal is abstract class for other jars, because the interface is not accessible. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1417 e251c2fe-e539-e718-e476-b85c1f46cddb --- Essentials/src/com/earth2me/essentials/IConfExternal.java | 8 ++++++++ .../earth2me/essentials/protect/EssentialsProtect.java | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Essentials/src/com/earth2me/essentials/IConfExternal.java diff --git a/Essentials/src/com/earth2me/essentials/IConfExternal.java b/Essentials/src/com/earth2me/essentials/IConfExternal.java new file mode 100644 index 000000000..e8e5dfbd2 --- /dev/null +++ b/Essentials/src/com/earth2me/essentials/IConfExternal.java @@ -0,0 +1,8 @@ +package com.earth2me.essentials; + + +public abstract class IConfExternal implements IConf +{ + + public abstract void reloadConfig(); +} diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java index a4522c7f2..4d4ca1769 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java @@ -2,6 +2,7 @@ package com.earth2me.essentials.protect; import com.earth2me.essentials.Essentials; import com.earth2me.essentials.IConf; +import com.earth2me.essentials.IConfExternal; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; import java.util.ArrayList; @@ -77,7 +78,7 @@ public class EssentialsProtect extends JavaPlugin pm.registerEvent(Type.PLUGIN_ENABLE, serverListener, Priority.Highest, this); reloadConfig(); - Essentials.getStatic().addReloadListener(new IConf() { + Essentials.getStatic().addReloadListener(new IConfExternal() { public void reloadConfig() {