mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
Player: don't report never-played for a disconnected player
this should catch fire like everything else does.
This commit is contained in:
parent
a9fafbc5eb
commit
26230c1f9b
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user