[SPIGOT-3416] Inconsistent maximum prefix/suffix length for teams Created: 13/Jul/17  Updated: 13/Jul/17  Resolved: 13/Jul/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Lucas Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: scoreboard, teams

Attachments: PNG File 1.12.png    

 Description   

Their maximum length is inconsistent with what the actual client supports and what is stated on the documentation of the API.

As the documentation states, the maximum length for both of them is of 16 characters. But implementations as far back as 1.7.10 (as far as I checked) have always allowed up to 32 characters. That allows plugins to create prefixes/suffixes too long for the client, which disconnects from the server upon receiving.

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java#53

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java#67


Generated at Tue Apr 22 03:30:28 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.