Skip to content

LegacyComponentSerializer does not deserialize components properly if formatting code char is capitalized #1043

Description

@pop4959

Related: EssentialsX/Essentials#5710

As referenced, this is unfortunately common and recognized usage, color codes chars should be case-insensitive ideally.

Example component output from the deserializer without normalization using Essentials /nick to trigger the issue:

/nick &epop4959

TextComponentImpl{content="pop4959", style=StyleImpl{obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, color=NamedTextColor{name="yellow", value="#ffff55"}, clickEvent=null, hoverEvent=null, insertion=null, font=null}

/nick &Epop4959

TextComponentImpl{content="§Epop4959", style=StyleImpl{obfuscated=not_set, bold=not_set, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions