mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Add reconnect api to allow mysql reconnect locations.
This commit is contained in:
parent
4cef0b2395
commit
f065d0099f
22
api/src/main/java/net/md_5/bungee/api/ReconnectHandler.java
Normal file
22
api/src/main/java/net/md_5/bungee/api/ReconnectHandler.java
Normal 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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user