1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 10:04:51 +02:00

Fix reloading of Protect

This commit is contained in:
snowleo
2013-03-31 11:22:11 +03:00
parent 774dd1c186
commit 726d659afc

View File

@@ -22,7 +22,9 @@ public class EssentialsConnect
}
ess = ((BukkitPlugin)essPlugin).getEssentials();
protect = (IProtect)essProtect;
protect.setSettings(new ProtectHolder(ess));
ProtectHolder settings = new ProtectHolder(ess);
protect.setSettings(settings);
ess.addReloadListener(settings);
}
public IEssentials getEssentials()