1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +02:00

Nick length patch

This commit is contained in:
KHobbits
2011-10-04 14:39:40 +01:00
parent 40f1309d7e
commit 9c6d49a9e2

View File

@@ -286,8 +286,11 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
public void setDisplayNick(String name) public void setDisplayNick(String name)
{ {
setDisplayName(name); setDisplayName(name);
//TODO: Maybe we need to limit nick length, or try use a string trim.
if (name.length() <= 16) {
setPlayerListName(name); setPlayerListName(name);
} }
}
public Teleport getTeleport() public Teleport getTeleport()
{ {