Package net.md_5.bungee.api
Interface ReconnectHandler
- All Known Implementing Classes:
AbstractReconnectHandler
public interface ReconnectHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close all connections indicating that the proxy is about to shutdown and all data should be saved.getServer
(ProxiedPlayer player) Gets the initial server name for a connecting player.void
save()
Save all pending reconnect locations.void
setServer
(ProxiedPlayer player) Save the server of this player before they disconnect so it can be retrieved later.
-
Method Details
-
getServer
Gets the initial server name for a connecting player.- Parameters:
player
- the connecting player- Returns:
- the server to connect to
-
setServer
Save the server of this player before they disconnect so it can be retrieved later.- Parameters:
player
- the player to save
-
save
void save()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. -
close
void close()Close all connections indicating that the proxy is about to shutdown and all data should be saved. No new requests will be made after this method has been called.
-