question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Character limit questions / feature request

See original GitHub issue

My 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:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MrMicky-FRcommented, Jul 8, 2021

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:

FastBoard board = new FastBoard(player) { 
    @Override
    public boolean hasLinesMaxLength() {
        return Via.getAPI().getPlayerVersion(getPlayer()) < ProtocolVersion.v1_13.getVersion(); // or just return true;
    }
});

With this the line limit will be 30 characters (with colors) for older versions

0reactions
MAXOUXAXcommented, Jan 27, 2022

Can confirm the problem is solved. Closing the issue now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webinar registration question character limit - Feature Requests
we use the custom questions feature for our webinars to allow people to submit questions in advance. However, many people are not able...
Read more >
250 characters for Open Questions? Sometimes not enough!
+1 for this great idea ! Would be very useful indeed to have this feature allowing questions to be answered in more than...
Read more >
FAQ: What is the character limit of a text question type field in ...
The default limit for the number of characters in a text question type field is 255. However, users can change the character limit...
Read more >
Form, question, response, and character limits in Microsoft ...
200,000 characters is the maximum allowed for total responses per form. For example, if a form contains five text questions, and the respondent...
Read more >
Character and Number Limits | QuestionPro Survey Tools
Click on Login » Surveys (Select Survey) » Edit · Click on Settings. · Enable the Required box to require a response. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found