MajekDev / HexNicks

Nickname plugin with hex color code and gradient support.
MIT License
27 stars 13 forks source link

&r sets to '<reset>' instead of resetting. #125

Open Zatiejo opened 8 months ago

Zatiejo commented 8 months ago

Color Code '&r' sets to '<.reset.>' instead of resetting any color code values previous from it. Originally, there was a noticable issue with players nicknames affecting their chat messages from the formatting of their nicks. (such as bold nicknames occurring from the nickname using the bold color code '&l'.) I tried just adding the '&r' after the displayname placeholder, but it just say's <.reset.>. (Can find this in screenshots) Also tried to let users just add it to the end of their usernames to perhaps see if it works there instead. Nope.

To "Reproduce" Steps to reproduce the behavior:

  1. Added the '&r' color code to message format in config OR to a nickname itself
  2. reload plugin
  3. type in chat to find formatting not working, and just says "<.reset.>" wherever it was originally placed in the config.

This isn't really a major bug, just a weird one. There's no error logs or whatever. (I'm sure it's easy to fix, and probably can be done within the plugins configs itself, I just haven't been able to find out how)

Expected behavior I just expected this to just reset any chat formatting to be removed. It's weird since the color codes are fine, but the format codes don't. Color codes (both hex and legacy color codes work. The formats do too, but not the reset color code.)

Screenshots Here's what happened when trying to add the '&r' to reset in the message formatting option in the config file. image_2023-12-25_000230466

Here's what happened when trying to add '&r' in the nickname itself. image_2023-12-25_000351400

Here's all of my plugins: image

Software:

Additional context Yet again, as stated before, there are no error logs. No "plugin is overriding ..." So, I'm not sure why this is. Perhaps a Vault issue? Yet, Vault is installed on its latest version.