Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComponentSerializer add bracket to item names #185

Closed
Elikill58 opened this issue Jul 27, 2024 · 1 comment
Closed

ComponentSerializer add bracket to item names #185

Elikill58 opened this issue Jul 27, 2024 · 1 comment

Comments

@Elikill58
Copy link

(Only tested on spigot 1.20.4 & more)

When using LegacyComponentSerializer.legacySection().serialize(input) and PlainTextComponentSerializer.legacySection().serialize(input), there is bracket that appear.

So, instead of having "Name", you have "[Name]". Example:

image

image

Full reproductible code:

ItemStack item = p.getItemInHand();
p.sendMessage("Test: " + item.getItemMeta().getDisplayName() + ", legacy: " + LegacyComponentSerializer.legacySection().serialize(item.displayName()));
@powercasgamer
Copy link
Contributor

This is not an Adventure issue, see this pull request for more info

@jpenilla jpenilla closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2024
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

No branches or pull requests

3 participants