Add reconnect api to allow mysql reconnect locations.

This commit is contained in:
md_5 2013-01-12 11:35:55 +11:00
parent 4cef0b2395
commit f065d0099f

View File

@ -0,0 +1,22 @@
package net.md_5.bungee.api;
import net.md_5.bungee.api.connection.ProxiedPlayer;
public interface ReconnectHandler
{
/**
* Gets the initial server name for a connecting player.
*
* @param player the connecting player
* @return the server name
*/
public String getServer(ProxiedPlayer player);
/**
* Save all pending reconnect locations. Whilst not used for database
* connections, this method will be called at a predefined interval to allow
* the saving of reconnect files.
*/
public void save();
}