1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +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,11 +22,13 @@ 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()
{
return ess;
}
}
}