private @NonNull CompletableFuture<TriState> onOfflinePermissionCheck(UUID uuid, String permission) {
        return lookupUser(uuid).thenApplyAsync(user -> {
            PermissionCache permissionData = user.getCachedData().getPermissionData();
            return fabricTristate(permissionData.checkPermission(permission, CheckOrigin.PLATFORM_API_HAS_PERMISSION).result());
        });
    }
Listener to route permission checks made via fabric-permissions-api to LuckPerms.
fabric/src/main/java/me/lucko/luckperms/fabric/listeners/FabricPermissionsApiListener.java