Skip to content

Fix the scoreboard being blank when running CanvasMC#86

Closed
byPixelTV wants to merge 6 commits into
MrMicky-FR:masterfrom
byPixelTV:master
Closed

Fix the scoreboard being blank when running CanvasMC#86
byPixelTV wants to merge 6 commits into
MrMicky-FR:masterfrom
byPixelTV:master

Conversation

@byPixelTV

Copy link
Copy Markdown

I've been using FastBoard for a while now. I primarily use Folia based servers which also includes Canvas. After updating to FastBoard 2.2.0 I've noticed that my scoreboard now looks like this.

image

Canvas rewrites and restores the scoreboard system, which was removed on Folia. Before FastBoard 2.2.0 this did not matter, because FastBoard only accessed methods and fields that are also available with the rewritten scoreboard system, so nothing broke.

This pr adds code to check if we are running on a Canvas server and uses methods introduced by Canvas to set the team display name, prefix and suffix so fastboard has full support for the rewritten scoreboard system.

References

@Dueris

Dueris commented Jun 28, 2026

Copy link
Copy Markdown

I added these methods in this commit:
CraftCanvasMC/Canvas@be3e654

Realistically speaking, this seemed easier than trying to reflect into the teamData field Canvas replaces this with. I can also backport this to 26.1.2 if this gets merged. Restoring the fields in question to be how it is in Folia and such devoids the point of the teamData locked ref

Comment thread src/main/java/fr/mrmicky/fastboard/FastBoardBase.java
Comment thread src/main/java/fr/mrmicky/fastboard/FastBoardBase.java Outdated
@byPixelTV

Copy link
Copy Markdown
Author

I think this pullrequest can be closed because of #88. I have to admit that using internals of Canvas is not the best fix for this issue, even though it works.

@byPixelTV byPixelTV closed this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants