mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 18:14:38 +02:00
Fix reloading of Protect
This commit is contained in:
@@ -22,7 +22,9 @@ public class EssentialsConnect
|
|||||||
}
|
}
|
||||||
ess = ((BukkitPlugin)essPlugin).getEssentials();
|
ess = ((BukkitPlugin)essPlugin).getEssentials();
|
||||||
protect = (IProtect)essProtect;
|
protect = (IProtect)essProtect;
|
||||||
protect.setSettings(new ProtectHolder(ess));
|
ProtectHolder settings = new ProtectHolder(ess);
|
||||||
|
protect.setSettings(settings);
|
||||||
|
ess.addReloadListener(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEssentials getEssentials()
|
public IEssentials getEssentials()
|
||||||
|
Reference in New Issue
Block a user