@Override
    public Optional<QueryOptions> getQueryOptionsForUser(User user) {
        return this.bootstrap.getPlayer(user.getUniqueId()).map(player -> this.contextManager.getQueryOptions(player));
    }
LuckPerms implementation for the BungeeCord API.
bungee/src/main/java/me/lucko/luckperms/bungee/LPBungeePlugin.java