private @NonNull Optional<String> onOptionRequest(CommandSource source, String key) {
        if (source instanceof ServerCommandSource) {
            Entity entity = ((ServerCommandSource) source).getEntity();
            if (entity instanceof ServerPlayerEntity) {
                return playerGetOption((ServerPlayerEntity) entity, key);
            }
        }
        return otherGetOption(source, key);
    }
Listener to route permission checks made via fabric-permissions-api to LuckPerms.
fabric/src/main/java/me/lucko/luckperms/fabric/listeners/FabricPermissionsApiListener.java