Merge pull request #27 from scizzr/master

Fix NPC renaming to parse colored names
This commit is contained in:
Jeremy Schroeder 2014-03-02 10:14:26 -05:00
commit d79ec59f49

View File

@ -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);