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 | c860b1c6685240222ad10c94ca8f873a21148ac9 (patch) | |
tree | ddcfb0b2b2029c38d4eb2f208f6674889b95ffc0 | |
parent | c584d74852b219b8f217a909aa124e3a0c63c30a (diff) | |
download | Essentials-c860b1c6685240222ad10c94ca8f873a21148ac9.tar Essentials-c860b1c6685240222ad10c94ca8f873a21148ac9.tar.gz Essentials-c860b1c6685240222ad10c94ca8f873a21148ac9.tar.lz Essentials-c860b1c6685240222ad10c94ca8f873a21148ac9.tar.xz Essentials-c860b1c6685240222ad10c94ca8f873a21148ac9.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 |