diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index e4f1b160..6aa39bca 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -148,8 +148,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player { return; } - if (ChatColor.stripColor(name).length() > 16) { - throw new IllegalArgumentException("Player list names can only be a maximum of 16 characters long without colour codes"); + if (name.length() > 16) { + throw new IllegalArgumentException("Player list names can only be a maximum of 16 characters long"); } // Collisions will make for invisible people |