set displayName in function setDisplayName
This commit is contained in:
parent
d684f5de69
commit
88a52bc4e9
@ -92,6 +92,7 @@ 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 );
|
||||||
bungee.getTabListHandler().onConnect( this );
|
bungee.getTabListHandler().onConnect( this );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user