Interface ConnectionRequestBuilder.Result

  • Enclosing interface:

    public static interface ConnectionRequestBuilder.Result
    Represents the result of a connection request.
    • Method Detail

      • isSuccessful

        default boolean isSuccessful()
        Determines whether or not the connection request was successful.
        whether or not the request succeeded
      • failureReason

        java.util.Optional<net.kyori.adventure.text.Component> failureReason()
        Returns an (optional) textual reason for the failure to connect to the server.
        the reason why the user could not connect to the server
      • finalTarget

        RegisteredServer finalTarget()
        Returns the server we actually tried to connect to.
        the server we actually tried to connect to