set displayName in function setDisplayName

This commit is contained in:
weaondara 2013-03-31 16:25:53 +03:00
parent d684f5de69
commit 88a52bc4e9

View File

@ -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 );
}