private static TriState fabricTristate(Tristate tristate) {
        switch (tristate) {
            case TRUE:
                return TriState.TRUE;
            case FALSE:
                return TriState.FALSE;
            case UNDEFINED:
                return TriState.DEFAULT;
            default:
                throw new AssertionError();
        }
    }
Listener to route permission checks made via fabric-permissions-api to LuckPerms.
fabric/src/main/java/me/lucko/luckperms/fabric/listeners/FabricPermissionsApiListener.java