EssentialsX

EssentialsX

2M Downloads

Nicknames not ignoring hex codes for length limits

chrismwiggs opened this issue ยท 1 comments

commented

Information

Full output of /ess version:

[13:11:10 INFO]: Server version: 1.16.1-R0.1-SNAPSHOT git-Paper-116 (MC: 1.16.1)
[13:11:10 INFO]: EssentialsX version: 2.18.0.0
[13:11:10 INFO]: Vault version: 1.7.3-b131
[13:11:10 INFO]: PlaceholderAPI version: 2.10.6

Server log:
https://gist.github.com/chrismwiggs/e999c23db122ea9fa29efa655c474517

EssentialsX config:
https://gist.github.com/chrismwiggs/74f372694bc0d3482f246f860bb5e84e

Details

Description
When setting a nickname with the ignore-colors-in-max-nick-length set to true, essentials will say the nickname is too long with hex codes. Ie. a nickname limit of 15 and ignore-colors-in-max-nick-length: true, will deny a nickname like:
#F4CB29c#F2B92Eh#E96232r#E04954i#D24679s#B8609Em#8191B6w#46A1BCi#00A8BCg#00A77Dg#00A355s
(renders as chrismwiggs, which should be plenty under the limit)

Steps to reproduce

Just /nick #F4CB29c#F2B92Eh#E96232r#E04954i#D24679s#B8609Em#8191B6w#46A1BCi#00A8BCg#00A77Dg#00A355s

Expected behavior

I would except it to ignore hex codes like how it would ignore old colour codes like &6

Screenshots

commented

Just needed to add a & before the colour code for essentials to recognize it. Ie. &#ffcc00.