Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Prefix formatting bleeds into display name

Open melaniebeedot opened this issue 1 year ago • 1 comments

Type of bug

Performance issue or memory leak

/ess dump all output

https://essentialsx.net/dump.html?id=2a7e713c0a5c48d1b5ca90e0a49a40f6

Error log (if applicable)

No response

Bug description

The bold from our prefixes is carrying over into our usernames when we /afk or un-/afk, and switching game modes, and in the /list of players online, even though our prefixes are specifically defined to reset the bold at the end of the prefix: bold

Steps to reproduce

  1. Update to the latest dev build of EssentialsX
  2. /afk or /gm or /list

Expected behaviour

Prefix is bolded and username is not.

Actual behaviour

Both prefix and username are in bold.

melaniebeedot avatar Feb 05 '24 19:02 melaniebeedot

The random format code also causes problems for /list, /whois, /seen, and /msg

Prefix is &1[&9&k::&9CoOwner&9&k::&1]&7

EDIT: I tried adding the reset code &r to the prefix, but it didn't help.

Essentials v2.21.0-dev+56-1929d41 Paper version git-Paper-430 (MC: 1.20.4)

image

Bobcat00 avatar Feb 21 '24 16:02 Bobcat00