mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 23:57:23 +02:00
Nick length patch
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user