mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 07:09:56 +00:00
Added NetworkSession->getPlayer()
This commit is contained in:
parent
ebc1524f9a
commit
535d4e2c9b
@ -104,6 +104,10 @@ class NetworkSession{
|
|||||||
$this->server->addPlayer($this->player);
|
$this->server->addPlayer($this->player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getPlayer() : ?Player{
|
||||||
|
return $this->player;
|
||||||
|
}
|
||||||
|
|
||||||
public function isConnected() : bool{
|
public function isConnected() : bool{
|
||||||
return $this->connected;
|
return $this->connected;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user