Search in sources :

Example 1 with BukkitContextManager

use of me.lucko.luckperms.bukkit.context.BukkitContextManager in project LuckPerms by lucko.

the class LPBukkitPlugin method setupContextManager.

@Override
protected void setupContextManager() {
    this.contextManager = new BukkitContextManager(this);
    BukkitPlayerCalculator playerCalculator = new BukkitPlayerCalculator(this, getConfiguration().get(ConfigKeys.DISABLED_CONTEXTS));
    this.bootstrap.getServer().getPluginManager().registerEvents(playerCalculator, this.bootstrap.getLoader());
    this.contextManager.registerCalculator(playerCalculator);
}
Also used : BukkitContextManager(me.lucko.luckperms.bukkit.context.BukkitContextManager) BukkitPlayerCalculator(me.lucko.luckperms.bukkit.context.BukkitPlayerCalculator)

Aggregations

BukkitContextManager (me.lucko.luckperms.bukkit.context.BukkitContextManager)1 BukkitPlayerCalculator (me.lucko.luckperms.bukkit.context.BukkitPlayerCalculator)1