EssentialsX / Essentials

The modern Essentials suite for Spigot and Paper.
https://essentialsx.net
GNU General Public License v3.0
1.9k stars 966 forks source link

/nick should ignore color codes for nick character limit #5831

Closed matipoirierg closed 2 weeks ago

matipoirierg commented 3 weeks ago

Feature description

When setting a nickname with multiple hex colors, the plugin denies it due to the character limit for custom nicks. I suggest that color codes should not count towards the nickname length limit. This would allow for greater flexibility without the need to set an excessively high limit in the config than can couse other issues.

How the feature is useful

Greater flexibility without the need to set an excessively high limit in the config than can couse other issues.

SrBedrock commented 2 weeks ago

In the config.yml file there is an option for this, set it to true.

# When this option is enabled, nickname length checking will exclude color codes in player names.
# ie: "&6Notch" has 7 characters (2 are part of a color code), a length of 5 is used when this option is set to true
ignore-colors-in-max-nick-length: false
matipoirierg commented 2 weeks ago

certified dumbass moment