Add more methods to sum up pending connection.
This commit is contained in:
parent
7a137b7e34
commit
febb661eb3
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user