Citizens - the premier plugin and API for creating server-side NPCs in Minecraft.
Go to file
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
dist Improved jar filename 2018-10-26 10:39:53 -07:00
main Improve handling of NPC names, fixes #1640 (#1642) 2018-12-20 04:44:06 +08:00
v1_8_R3 Improve handling of NPC names, fixes #1640 (#1642) 2018-12-20 04:44:06 +08:00
v1_10_R1 Improve handling of NPC names, fixes #1640 (#1642) 2018-12-20 04:44:06 +08:00
v1_11_R1 Improve handling of NPC names, fixes #1640 (#1642) 2018-12-20 04:44:06 +08:00
v1_12_R1 Improve handling of NPC names, fixes #1640 (#1642) 2018-12-20 04:44:06 +08:00
v1_13_R2 Improve handling of NPC names, fixes #1640 (#1642) 2018-12-20 04:44:06 +08:00
.gitignore Increase tablist packet remove delay 2018-06-07 16:57:37 +08:00
ISSUE_TEMPLATE Add required version fill-in points on the issue template 2018-07-21 21:14:14 -07:00
LICENSE Add -l flag to /npc spawn and add /npc metadata 2018-01-01 14:41:10 +08:00
pom.xml Improved jar filename 2018-10-26 10:39:53 -07:00
README.md Improve readme file 2018-09-21 07:14:25 -07:00

Citizens2 README

Citizens is an NPC plugin for the Bukkit API. It was first released on March 5, 2011, and has since seen numerous updates. Citizens provides an API which developers can use to create their own NPC characters. More information on the API can be found on the API page of the Citizens Wiki (https://wiki.citizensnpcs.co/API).

Compatible with:

Extra information

Javadoc: http://jd.citizensnpcs.co

Spigot page: https://www.spigotmc.org/resources/citizens.13811

For questions/help join our discord at: https://discord.gg/Q6pZGSR