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

        SpongePlayerCalculator playerCalculator = new SpongePlayerCalculator(this);
        this.bootstrap.registerListeners(playerCalculator);
        this.contextManager.registerCalculator(playerCalculator);
    }
LuckPerms implementation for the Sponge API.
sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongePlugin.java