diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-13 12:52:01 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-13 12:52:01 +0100 |
commit | 6043797ce0b23c9bf7f92efd31746c1cd758b2be (patch) | |
tree | 4dc2a605e264db4fad1df6a8e9e0795490451683 /src/main/java/org/bukkit | |
parent | 1be1b5ab4d713ce1a7807465e7fc0a4079ac85bd (diff) | |
download | craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar.gz craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar.lz craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar.xz craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.zip |
Fix getDisplayName getting lost when getBukkitEntity is called
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 79a15360..1b3a6222 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/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 |