setDisplayName bug fix
first remove then change and add again
This commit is contained in:
parent
68712ab854
commit
d900a5eae7
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user