mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +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);
|
||||
}
|
||||
|
||||
public function getPlayer() : ?Player{
|
||||
return $this->player;
|
||||
}
|
||||
|
||||
public function isConnected() : bool{
|
||||
return $this->connected;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user