Character limit questions / feature request
See original GitHub issueMy server is running Paper 1.17
, coupled with ViaVersion
and ViaBackwards
to support versions from 1.9
through 1.17.
When I connect to the server using a version older than 1.13,
my scoreboard lines are cut off, but I’m pretty sure my lines are less than 30 characters long.
Does this limit include color codes?
While this limit cannot be circumvented, it would be great to have a feature allowing to switch to a smart mode when creating a FastBoard
instance, a smart mode that would allow a line longer than 30 characters to be split across multiple lines while keeping the color code when sending data to past 1.13
versions?
This would keep the display unchanged for versions newer than 1.12
while still allowing older versions to display all desired data.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
Hi, It’s because the prefix limit on older versions is limited to 16 characters. To solve this issue you can override the method
hasLinesMaxLength
to return true if the player is on an older server version (or you can also always return true), like this:With this the line limit will be 30 characters (with colors) for older versions
Can confirm the problem is solved. Closing the issue now.