Skip to content

Fix rgb color codes getting stripped in some cases - #5076

Merged
JRoy merged 3 commits into
EssentialsX:2.xfrom
JRoy:fix/5058
Aug 18, 2022
Merged

Fix rgb color codes getting stripped in some cases#5076
JRoy merged 3 commits into
EssentialsX:2.xfrom
JRoy:fix/5058

Conversation

@JRoy

@JRoyJRoy commented Aug 18, 2022

Copy link
Copy Markdown
Member

Fixes#5058

In cases where a user has essentials.color.rgb but not all color codes (essentials.color.color), the strip functionality in FormatUtil#formatString will sometimes strip rgb codes in the md_5 format. Moving the strip before the format maintains strip behavior as well as prevents this from happening.

@JRoyJRoy added the module: main Issues or PRs for the main Essentials module label Aug 18, 2022
@JRoyJRoy added this to the 2.19.7 milestone Aug 18, 2022
@JRoyJRoy added the type: bugfix PRs that fix bugs in EssentialsX. label Aug 18, 2022
@JRoy
JRoy enabled auto-merge (squash) August 18, 2022 17:27
@JRoy
JRoy merged commit ca4077b into EssentialsX:2.xAug 18, 2022
@JRoy
JRoy deleted the fix/5058 branch August 18, 2022 17:29
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
rewsdjad1 pushed a commit to rewsdjad1/EssentialsXPlus that referenced this pull request Aug 13, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: mainIssues or PRs for the main Essentials moduletype: bugfixPRs that fix bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RGB color codes are stripped unless sender has certain color permissions

3 participants

@JRoy@mdcfe@pop4959