diff --git a/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java b/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java index 54e443474..ad978aed4 100644 --- a/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java +++ b/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java @@ -17,7 +17,7 @@ public interface ProxiedPlayer extends Connection, CommandSender * * @return the players current display name */ - public String getDisplayName(); + String getDisplayName(); /** * Sets this players display name to be used as their nametag and tab list @@ -25,7 +25,7 @@ public interface ProxiedPlayer extends Connection, CommandSender * * @param name the name to set */ - public void setDisplayName(String name); + void setDisplayName(String name); /** * Connects / transfers this user to the specified connection, gracefully @@ -34,21 +34,21 @@ public interface ProxiedPlayer extends Connection, CommandSender * * @param target the new server to connect to */ - public void connect(ServerInfo target); + void connect(ServerInfo target); /** * Gets the server this player is connected to. * * @return the server this player is connected to */ - public Server getServer(); + Server getServer(); /** * Gets the ping time between the proxy and this connection. * * @return the current ping time */ - public int getPing(); + int getPing(); /** * Send a plugin message to this player. @@ -56,28 +56,28 @@ public interface ProxiedPlayer extends Connection, CommandSender * @param channel the channel to send this data via * @param data the data to send */ - public void sendData(String channel, byte[] data); + void sendData(String channel, byte[] data); /** * Get the pending connection that belongs to this player. * * @return the pending connection that this player used */ - public PendingConnection getPendingConnection(); + PendingConnection getPendingConnection(); /** * Make this player chat (say something), to the server he is currently on. * * @param message the message to say */ - public void chat(String message); + void chat(String message); /** * Send a request to change the players texture pack. * * @param pack the pack to request */ - public void setTexturePack(TexturePackInfo pack); + void setTexturePack(TexturePackInfo pack); /** * Sets the new tab list for the user. At this stage it is not advisable to @@ -85,5 +85,12 @@ public interface ProxiedPlayer extends Connection, CommandSender * * @param list the new list */ - public void setTabList(TabListHandler list); + void setTabList(TabListHandler list); + + /** + * Get the current tab list. + * + * @return the tab list in use by this user + */ + TabListHandler getTabList(); } diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 3a19c5ded..98498e74c 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -120,6 +120,7 @@ public final class UserConnection implements ProxiedPlayer } } + @Override public void setTabList(TabListHandler tabList) { tabList.init( this );