Add yaml reconnect handler.

This commit is contained in:
md_5
2013-01-19 17:02:49 +11:00
parent 355afba6da
commit 77d5398124
7 changed files with 111 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
package net.md_5.bungee.api.connection;
import java.net.InetSocketAddress;
import net.md_5.bungee.api.config.ListenerInfo;
/**
* Represents a user attempting to log into the proxy.
@@ -36,4 +37,11 @@ public interface PendingConnection extends Connection
* @param reason the disconnect reason displayed to the player
*/
public void disconnect(String reason);
/**
* Get the listener that accepted this connection.
*
* @return the accepting listener
*/
public ListenerInfo getListener();
}

View File

@@ -55,4 +55,11 @@ public interface ProxiedPlayer extends Connection, CommandSender
* @param data the data to send
*/
public void sendData(String channel, byte[] data);
/**
* Get the pending connection that belongs to this player.
*
* @return the pending connection that this player used
*/
public PendingConnection getPendingConnection();
}