From 88a52bc4e92de356e938af0835910d2e5205bfa0 Mon Sep 17 00:00:00 2001 From: weaondara Date: Sun, 31 Mar 2013 16:25:53 +0300 Subject: [PATCH] set displayName in function setDisplayName --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 1 + 1 file changed, 1 insertion(+) 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 3ed68cae..4a04e8eb 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -92,6 +92,7 @@ public final class UserConnection implements ProxiedPlayer public void setDisplayName(String name) { Preconditions.checkArgument( name.length() <= 16, "Display name cannot be longer than 16 characters" ); + displayName=name; bungee.getTabListHandler().onDisconnect( this ); bungee.getTabListHandler().onConnect( this ); }