geforkt von Mirrors/Paper
SPIGOT-4022: Improve utility of Entity.getName for non-players
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
c325d5a0f9
Commit
dbebb4f89b
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren