private TriState otherPermissionCheck(CommandSource source, String permission) {
        if (source instanceof ServerCommandSource) {
            String name = ((ServerCommandSource) source).getName();
            VerboseCheckTarget target = VerboseCheckTarget.internal(name);

            this.plugin.getVerboseHandler().offerPermissionCheckEvent(CheckOrigin.PLATFORM_API_HAS_PERMISSION, target, QueryOptionsImpl.DEFAULT_CONTEXTUAL, permission, TristateResult.UNDEFINED);
            this.plugin.getPermissionRegistry().offer(permission);
        }

        return TriState.DEFAULT;
    }
Listener to route permission checks made via fabric-permissions-api to LuckPerms.
fabric/src/main/java/me/lucko/luckperms/fabric/listeners/FabricPermissionsApiListener.java