SkBee
SkBee copied to clipboard
[SUGGESTION] Bossbar title with Component
Suggestion
I would like to be able to create Bossbars that have Adventure API components in their title. I would need that so I could use the <font> style in it because Minimessages don't format the font if it's not a component.
Alternatives
set {_audience} to server.getServer()
set {_name} to {_mm}.deserialize("<font:bb_fonts:offset_0><color:##ffff59>HEYYY")
set {_bb} to BossBar.bossBar({_name}, 0.75, BossBar.Color.YELLOW, BossBar.Overlay.PROGRESS)
{_audience}.showBossBar({_bb})
Additional Information
I found some Adventure API Bossbar stuff here: https://github.com/KyoriPowered/adventure/blob/main/4/api/src/main/java/net/kyori/adventure/bossbar/BossBar.java But my understand of java is very limited so I do not know if it is useful.