Added support for plugins to get the current server a player is on.

This commit is contained in:
KaneFreeman 2013-01-06 12:06:39 -05:00 committed by md_5
parent 608ca78be1
commit 393562ff5a

View File

@ -127,6 +127,11 @@ public class UserConnection extends GenericConnection implements CommandSender
}
}
public String getServer()
{
return server.name;
}
public SocketAddress getAddress()
{
return socket.getRemoteSocketAddress();