Citizens2/v1_11_R1
Alex "mcmonkey" Goodwin 9e0b4e0ab9 Improve handling of NPC names, fixes #1640 (#1642)
* Improve handling of NPC names, fixes #1640

Moves the logic to a Util method (instead of duplicated in each module), and adds the "prefixColors" portions (replacing just a static 'RESET' code).
If colors and effects are combined, using only the most recent effect is sufficient (eg reapplying bold) as that should produce effectively no change while still having a color code stuck into the name as is needed to break NPCs looking like real players internally.

* Additional NPC name improvement: fix color code splliting

a name consisting of a color code followed by 15 letters would get split in the middle of the color code, rather than around it. This fixes that.
2018-12-20 04:44:06 +08:00
..
src/main/java/net/citizensnpcs/nms/v1_11_R1 Improve handling of NPC names, fixes #1640 (#1642) 2018-12-20 04:44:06 +08:00
pom.xml Update version and preliminary 1.13.1 update 2018-08-26 20:43:51 +08:00