From 26230c1f9bf6bb1cd9cc22ea1b98b2a8efd3a4d1 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 12 Dec 2019 12:17:52 +0000 Subject: [PATCH] Player: don't report never-played for a disconnected player this should catch fire like everything else does. --- src/pocketmine/Player.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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{