summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-10-04 14:39:40 +0100
committerKHobbits <rob@khobbits.co.uk>2011-10-04 14:39:40 +0100
commit9718e654acf7082413199fd60eea9e62d4a1eb8c (patch)
treee66a802a8f4b055d583e4cdb9fb38315a731999c
parent4d5121c21d28aa528893f64b29cbf5438710d7d9 (diff)
downloadEssentials-9718e654acf7082413199fd60eea9e62d4a1eb8c.tar
Essentials-9718e654acf7082413199fd60eea9e62d4a1eb8c.tar.gz
Essentials-9718e654acf7082413199fd60eea9e62d4a1eb8c.tar.lz
Essentials-9718e654acf7082413199fd60eea9e62d4a1eb8c.tar.xz
Essentials-9718e654acf7082413199fd60eea9e62d4a1eb8c.zip
Nick length patch
-rw-r--r--Essentials/src/com/earth2me/essentials/User.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java
index fe811e50f..3e335a1df 100644
--- a/Essentials/src/com/earth2me/essentials/User.java
+++ b/Essentials/src/com/earth2me/essentials/User.java
@@ -286,7 +286,10 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
public void setDisplayNick(String 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()