Package net.md_5.bungee.api.connection
Interface PendingConnection
- All Superinterfaces:
Connection
Represents a user attempting to log into the proxy.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.md_5.bungee.api.connection.Connection
Connection.Unsafe -
Method Summary
Modifier and TypeMethodDescriptionGet the listener that accepted this connection.getName()Get the requested username.Get the requested virtual host that the client tried to connect to.Methods inherited from interface net.md_5.bungee.api.connection.Connection
disconnect, getAddress, unsafe
-
Method Details
-
getName
String getName()Get the requested username.- Returns:
- the requested username, or null if not set
-
getVirtualHost
InetSocketAddress getVirtualHost()Get the requested virtual host that the client tried to connect to.- Returns:
- request virtual host or null if invalid / not specified.
-
getListener
ListenerInfo getListener()Get the listener that accepted this connection.- Returns:
- the accepting listener
-