diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 79a153600c..1b3a6222c2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -17,11 +17,9 @@ import org.bukkit.craftbukkit.TextWrapper; import org.bukkit.entity.Player; public class CraftPlayer extends CraftHumanEntity implements Player { - private String name; public CraftPlayer(CraftServer server, EntityPlayer entity) { super(server, entity); - name = getName(); } public boolean isOp() { @@ -88,11 +86,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } public String getDisplayName() { - return name; + return getHandle().displayName; } public void setDisplayName(final String name) { - this.name = name; + getHandle().displayName = name; } @Override