From 393562ff5a2ba98f7d5981df03abe7eaa4618c65 Mon Sep 17 00:00:00 2001 From: KaneFreeman Date: Sun, 6 Jan 2013 12:06:39 -0500 Subject: [PATCH] Added support for plugins to get the current server a player is on. --- src/main/java/net/md_5/bungee/UserConnection.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/md_5/bungee/UserConnection.java b/src/main/java/net/md_5/bungee/UserConnection.java index a134fbaa..e6177578 100644 --- a/src/main/java/net/md_5/bungee/UserConnection.java +++ b/src/main/java/net/md_5/bungee/UserConnection.java @@ -127,6 +127,11 @@ public class UserConnection extends GenericConnection implements CommandSender } } + public String getServer() + { + return server.name; + } + public SocketAddress getAddress() { return socket.getRemoteSocketAddress();