diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 576567774e..64cfc95150 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -568,7 +568,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { @Override public String getName() { - return getHandle().getName(); + return CraftChatMessage.fromComponent(getHandle().getDisplayName(), EnumChatFormat.WHITE); } @Override diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 269bbd8e77..073c8acf2c 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -92,6 +92,11 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { return getHandle().sleepTicks; } + @Override + public String getName() { + return getHandle().getName(); + } + public boolean isOp() { return op; }