geforkt von Mirrors/Paper
Correctly take in ChatColor length when limiting player list size. This should fix BUKKIT-571
Dieser Commit ist enthalten in:
Ursprung
737cf284e3
Commit
1f1c9c0d4b
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren