mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Added NetworkSession->getPlayer()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user