diff options
author | snowleo <schneeleo@gmail.com> | 2012-01-14 23:25:52 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-01-14 23:25:52 +0100 |
commit | 42abc5024012bd75b30be330ba70fd26872cbf71 (patch) | |
tree | 330cf95e5fb402592e5db29810112b399b139aea | |
parent | 543a85e13e2840ec7454c2b31a3265f2c5b64846 (diff) | |
download | Essentials-42abc5024012bd75b30be330ba70fd26872cbf71.tar Essentials-42abc5024012bd75b30be330ba70fd26872cbf71.tar.gz Essentials-42abc5024012bd75b30be330ba70fd26872cbf71.tar.lz Essentials-42abc5024012bd75b30be330ba70fd26872cbf71.tar.xz Essentials-42abc5024012bd75b30be330ba70fd26872cbf71.zip |
Reload less
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 223363c3a..5287e299b 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -614,13 +614,27 @@ public class Essentials extends JavaPlugin implements IEssentials @Override public void onWorldLoad(WorldLoadEvent event) { - ess.scheduleSyncDelayedTask(this); + ess.getJails().onReload(); + ess.getWarps().reloadConfig(); + for (IConf iConf : ((Essentials)ess).confList) + { + if (iConf instanceof IEssentialsModule) { + iConf.reloadConfig(); + } + } } @Override public void onWorldUnload(WorldUnloadEvent event) { - ess.scheduleSyncDelayedTask(this); + ess.getJails().onReload(); + ess.getWarps().reloadConfig(); + for (IConf iConf : ((Essentials)ess).confList) + { + if (iConf instanceof IEssentialsModule) { + iConf.reloadConfig(); + } + } } @Override |