mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-07-14 15:24:43 +02: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;
|
Location prev = npc.isSpawned() ? npc.getEntity().getLocation() : null;
|
||||||
npc.despawn(DespawnReason.PENDING_RESPAWN);
|
npc.despawn(DespawnReason.PENDING_RESPAWN);
|
||||||
npc.setName(newName);
|
npc.setName(Colorizer.parseColors(newName));
|
||||||
if (prev != null)
|
if (prev != null)
|
||||||
npc.spawn(prev);
|
npc.spawn(prev);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user