diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index bb5c0cca7..0ca53f43a 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -565,13 +565,13 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade return $this->displayName; } - /** - * @param string $name - */ + /** + * @param string $name + */ public function setDisplayName($name){ $this->displayName = $name; if($this->spawned){ - $this->server->updatePlayerListData($this->getUniqueId(), $this->getId(), $this->getDisplayName(), $isSlim, $str); + $this->server->updatePlayerListData($this->getUniqueId(), $this->getId(), $this->getDisplayName(), $this->isSkinSlim(), $this->getSkinData()); } }