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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user