public static com.velocitypowered.api.permission.Tristate convertTristate(Tristate tristate) {
        Objects.requireNonNull(tristate, "tristate");
        switch (tristate) {
            case TRUE:
                return com.velocitypowered.api.permission.Tristate.TRUE;
            case FALSE:
                return com.velocitypowered.api.permission.Tristate.FALSE;
            default:
                return com.velocitypowered.api.permission.Tristate.UNDEFINED;
        }
    }
Utility class for converting between Velocity and LuckPerms tristate classes
velocity/src/main/java/me/lucko/luckperms/velocity/service/CompatibilityUtil.java