NametagEdit

721k Downloads

Stripping colors when saving to config

Brikster opened this issue · 1 comments

commented

Bug Report

Latest NameTagEdit version (actual code from repository)

With commit 1c73b97 @Aurelien30000 changed Utils#deformat(string) method. Now it does ChatColor.strip(string). It causes removing color codes from player prefixes that set with command (when saving to config).

Using the old implementation (string.replace("§", "&")) solves the problem, but I don't know about reasons method was changed, so decided not to make PR.

commented

Hey! Iirc, in the chat, you can’t type §, & should be used and it should fix your issue since they are not stripped.

Note: in the server console this character is accepted, so you could make a pr to revert this change.