mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-23 15:53:26 +00:00
Nick length patch
This commit is contained in:
parent
4d5121c21d
commit
9718e654ac
1 changed files with 4 additions and 1 deletions
|
@ -286,7 +286,10 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||||
public void setDisplayNick(String name)
|
public void setDisplayNick(String name)
|
||||||
{
|
{
|
||||||
setDisplayName(name);
|
setDisplayName(name);
|
||||||
setPlayerListName(name);
|
//TODO: Maybe we need to limit nick length, or try use a string trim.
|
||||||
|
if (name.length() <= 16) {
|
||||||
|
setPlayerListName(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Teleport getTeleport()
|
public Teleport getTeleport()
|
||||||
|
|
Loading…
Reference in a new issue