Can't change the shopkeeper's name to hex colors
TBAProgramming opened this issue · 12 comments
Preliminaries:
- Shopkeepers version:
<2.16.5>
- Spigot version:
<idk how to get it>
- My config of shopkeepers:
<https://paste.gg/p/anonymous/f8cd1d26f1e94db8ad1ee7d95d79e395>
- HEX Colors Generator
https://www.simplymc.art/Gradients/
The issue:
when i change shopkeeper name to HEX COLORS he wont change and i checked if i changed regex to name-regex: "[A-Za-z0-9&§# ]{3,25}" in config
video: https://imgur.com/HHH0ErS
Names with hex color can get quite long. Your name-regex
currently specified a maximum character limit of 25. So try to increase that. There is a built-in limit of 256 characters.
BUT NOT WORKING @blablubbabc
VIDEO : https://imgur.com/HHH0ErS
Maybe try with a short name first, with a single hex color. If that works, then your non-working name is too long.
Internally, the server converts hex colors to a more verbose representation that takes 2 characters per hex digit. So a single hex color like 𞉀
internally becomes &x&1&2&3&4&5&6
. The name length limit is applied to this expanded form.
Edit: Also, older Shopkeeper versions even had a hard limit of 128, instead of 256.
And you need to make sure you increase the default limit inside the config, as noted above.