Add more methods to sum up pending connection.

This commit is contained in:
md_5 2013-01-12 12:36:41 +11:00
parent 7a137b7e34
commit febb661eb3

View File

@ -1,8 +1,31 @@
package net.md_5.bungee.api.connection; package net.md_5.bungee.api.connection;
import java.net.InetSocketAddress;
/** /**
* Represents a user attempting to log into the proxy. * Represents a user attempting to log into the proxy.
*/ */
public interface PendingConnection extends Connection public interface PendingConnection extends Connection
{ {
/**
* Get the requested username.
*
* @return the requested username, or null if not set
*/
public String getName();
/**
* Get the numerical client version of the player attempting to log in.
*
* @return the protocol version of the remote client
*/
public byte getVersion();
/**
* Get the requested virtual host that the client tried to connect to.
*
* @return request virtual host or null if invalid / not specified.
*/
public InetSocketAddress getVirtualHost();
} }