From f065d0099f5f749051562ee2f3b8f414fdda454f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 12 Jan 2013 11:35:55 +1100 Subject: [PATCH] Add reconnect api to allow mysql reconnect locations. --- .../net/md_5/bungee/api/ReconnectHandler.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 api/src/main/java/net/md_5/bungee/api/ReconnectHandler.java diff --git a/api/src/main/java/net/md_5/bungee/api/ReconnectHandler.java b/api/src/main/java/net/md_5/bungee/api/ReconnectHandler.java new file mode 100644 index 00000000..b835fc30 --- /dev/null +++ b/api/src/main/java/net/md_5/bungee/api/ReconnectHandler.java @@ -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(); +}