setDisplayName bug fix

first remove
then change and add again
This commit is contained in:
weaondara 2013-04-02 12:18:43 +03:00
parent 68712ab854
commit d900a5eae7

View File

@ -92,8 +92,8 @@ public final class UserConnection implements ProxiedPlayer
public void setDisplayName(String name) public void setDisplayName(String name)
{ {
Preconditions.checkArgument( name.length() <= 16, "Display name cannot be longer than 16 characters" ); Preconditions.checkArgument( name.length() <= 16, "Display name cannot be longer than 16 characters" );
displayName=name;
bungee.getTabListHandler().onDisconnect( this ); bungee.getTabListHandler().onDisconnect( this );
displayName=name;
bungee.getTabListHandler().onConnect( this ); bungee.getTabListHandler().onConnect( this );
} }