Handle removed servers in reconnect

This commit is contained in:
md_5
2013-03-02 19:26:19 +11:00
parent 385699380f
commit 317f286789
3 changed files with 22 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
package net.md_5.bungee.api;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;
public interface ReconnectHandler
@@ -9,9 +10,9 @@ public interface ReconnectHandler
* Gets the initial server name for a connecting player.
*
* @param player the connecting player
* @return the server name
* @return the server to connect to
*/
public String getServer(ProxiedPlayer player);
public ServerInfo getServer(ProxiedPlayer player);
/**
* Save the server of this player before they disconnect so it can be