From 1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Fri, 25 Mar 2011 21:22:57 +0100 Subject: [PATCH] Copy displayname when cross-world teleporting --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index adc09118a1..39aa8e5dc4 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -164,6 +164,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { newEntity.locX = location.getX(); newEntity.locY = location.getY(); newEntity.locZ = location.getZ(); + newEntity.displayName = entity.displayName; newEntity.compassTarget = entity.compassTarget; newWorld.u.d((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);