diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-10 21:34:01 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-10 21:34:01 +0000 |
commit | 48409fd9ea5fe788b9e9225b4427bf06f02bd13f (patch) | |
tree | 6b50ba3ff0e75a06a0574fdf65240d942222546d /EssentialsProtect/src/com/earth2me/essentials/protect | |
parent | 0db4afa5f1c6f215468bc8cd0be18a607439bde9 (diff) | |
download | Essentials-48409fd9ea5fe788b9e9225b4427bf06f02bd13f.tar Essentials-48409fd9ea5fe788b9e9225b4427bf06f02bd13f.tar.gz Essentials-48409fd9ea5fe788b9e9225b4427bf06f02bd13f.tar.lz Essentials-48409fd9ea5fe788b9e9225b4427bf06f02bd13f.tar.xz Essentials-48409fd9ea5fe788b9e9225b4427bf06f02bd13f.zip |
Fix EssentialsProtect not loading correctly, because Essentials is not loaded first.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1414 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java index d1fbb786a..a4522c7f2 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtect.java @@ -8,7 +8,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.event.Event.Priority; @@ -17,7 +16,7 @@ import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; -public class EssentialsProtect extends JavaPlugin implements IConf +public class EssentialsProtect extends JavaPlugin { private EssentialsProtectBlockListener blockListener = null; private EssentialsProtectPlayerListener playerListener = null; @@ -78,7 +77,13 @@ public class EssentialsProtect extends JavaPlugin implements IConf pm.registerEvent(Type.PLUGIN_ENABLE, serverListener, Priority.Highest, this); reloadConfig(); - Essentials.getStatic().addReloadListener(this); + Essentials.getStatic().addReloadListener(new IConf() { + + public void reloadConfig() + { + EssentialsProtect.this.reloadConfig(); + } + }); if (!this.getDescription().getVersion().equals(Essentials.getStatic().getDescription().getVersion())) { logger.log(Level.WARNING, Util.i18n("versionMismatchAll")); } |