diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 7c427fa38b..55ea121b54 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -169,7 +169,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @Override public void setDisplayName(final String name) { - getHandle().displayName = name; + getHandle().displayName = name == null ? getName() : name; } @Override