diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 16451d733..a76add108 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -464,11 +464,11 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } public function getFirstPlayed(){ - return $this->namedtag instanceof CompoundTag ? $this->namedtag->getLong("firstPlayed", 0, true) : null; + return $this->namedtag->getLong("firstPlayed", 0, true); } public function getLastPlayed(){ - return $this->namedtag instanceof CompoundTag ? $this->namedtag->getLong("lastPlayed", 0, true) : null; + return $this->namedtag->getLong("lastPlayed", 0, true); } public function hasPlayedBefore() : bool{