mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-29 19:41:50 +01:00
Merge pull request #27 from scizzr/master
Fix NPC renaming to parse colored names
This commit is contained in:
commit
d79ec59f49
@ -1071,7 +1071,7 @@ public class NPCCommands {
|
||||
}
|
||||
Location prev = npc.isSpawned() ? npc.getEntity().getLocation() : null;
|
||||
npc.despawn(DespawnReason.PENDING_RESPAWN);
|
||||
npc.setName(newName);
|
||||
npc.setName(Colorizer.parseColors(newName));
|
||||
if (prev != null)
|
||||
npc.spawn(prev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user