summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-01-14 23:25:52 +0100
committersnowleo <schneeleo@gmail.com>2012-01-14 23:25:52 +0100
commitc860b1c6685240222ad10c94ca8f873a21148ac9 (patch)
treeddcfb0b2b2029c38d4eb2f208f6674889b95ffc0
parentc584d74852b219b8f217a909aa124e3a0c63c30a (diff)
downloadEssentials-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.java18
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