Skip to content

Conversation

@tajobe
Copy link
Member

@tajobe tajobe commented Jun 8, 2025

Chat component support for really anything with Chat messages, use toLegacyText for Title and Boss messages since there doesn't appear to be a component API for them.


Completes #5

@tajobe tajobe requested review from a team and Puremin0rez June 8, 2025 02:11
Copy link
Member

@Puremin0rez Puremin0rez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The built-in API for components tends to be lackluster as it uses Bungee components (net.md_5.bungee.api.chat.BaseComponent), which was made for the Bungeecord proxy and reused for servers. It's probably one of the weaker APIs that was never adapted to support modern components everywhere. A modern featured plugin would typically try to use something like Adventure which does support components everywhere Minecraft supports them, including boss bars and titles. MiniMessage is also a format that is more mainstream in popular plugins for user configuration of messages.

In terms of having something that is purely a representation of components available with API though, and will stand the test of time without needing much maintenance, this PR achieves that.

@tajobe tajobe merged commit 2126a24 into main Jun 9, 2025
1 check passed
@tajobe tajobe deleted the feature/GH-5/json-components branch June 9, 2025 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants