mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 11:37:42 +01:00
Fix NPC renaming to parse colored names
This commit is contained in:
parent
c651c61c37
commit
53ab0d0703
@ -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