@Override
    protected void setupContextManager() {
        this.contextManager = new NukkitContextManager(this);

        NukkitPlayerCalculator playerCalculator = new NukkitPlayerCalculator(this, getConfiguration().get(ConfigKeys.DISABLED_CONTEXTS));
        this.bootstrap.getServer().getPluginManager().registerEvents(playerCalculator, this.bootstrap.getLoader());
        this.contextManager.registerCalculator(playerCalculator);
    }
LuckPerms implementation for the Nukkit API.
nukkit/src/main/java/me/lucko/luckperms/nukkit/LPNukkitPlugin.java