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

        Set<String> disabledContexts = getConfiguration().get(ConfigKeys.DISABLED_CONTEXTS);
        if (!disabledContexts.contains(DefaultContextKeys.WORLD_KEY)) {
            BungeePlayerCalculator playerCalculator = new BungeePlayerCalculator(this);
            this.bootstrap.getProxy().getPluginManager().registerListener(this.bootstrap.getLoader(), playerCalculator);
            this.contextManager.registerCalculator(playerCalculator);
        }

        if (!disabledContexts.contains("proxy") && this.bootstrap.getProxy().getPluginManager().getPlugin("RedisBungee") != null) {
            this.contextManager.registerCalculator(new RedisBungeeCalculator());
        }
    }
LuckPerms implementation for the BungeeCord API.
bungee/src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java