Include server that we attempted to connect to in the result.

This commit is contained in:
Andrew Steinborn
2019-03-08 23:51:47 -05:00
parent fa9d5f6499
commit c7a379ebb8
5 changed files with 49 additions and 20 deletions

View File

@@ -69,6 +69,13 @@ public interface ConnectionRequestBuilder {
* @return the reason why the user could not connect to the server
*/
Optional<Component> getReason();
/**
* Returns the server we actually tried to connect to.
*
* @return the server we actually tried to connect to
*/
RegisteredServer getAttemptedConnection();
}
/**