This is hard >.>

This commit is contained in:
md_5
2013-01-18 10:46:55 +11:00
parent 55867dbdc3
commit 32ef5212f8
7 changed files with 93 additions and 132 deletions

View File

@@ -113,6 +113,20 @@ public abstract class ProxyServer
*/
public abstract void setTabListHandler(TabListHandler handler);
/**
* Get the currently in use reconnect handler.
*
* @return the in use reconnect handler
*/
public abstract ReconnectHandler getReconnectHandler();
/**
* Sets the reconnect handler to be used for subsequent connections.
*
* @param handler the new handler
*/
public abstract void setReconnectHandler(ReconnectHandler handler);
/**
* Gracefully mark this instance for shutdown.
*/

View File

@@ -28,4 +28,12 @@ public interface PendingConnection extends Connection
* @return request virtual host or null if invalid / not specified.
*/
public InetSocketAddress getVirtualHost();
/**
* Completely kick this user from the proxy and all of its child
* connections.
*
* @param reason the disconnect reason displayed to the player
*/
public void disconnect(String reason);
}

View File

@@ -49,14 +49,6 @@ public interface ProxiedPlayer extends Connection, CommandSender
*/
public int getPing();
/**
* Completely kick this user from the proxy and all of its child
* connections.
*
* @param reason the disconnect reason displayed to the player
*/
public void disconnect(String reason);
/**
* Send a plugin message to this player.
*