mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
add NetworkSession->onEnterWorld() hook
This commit is contained in:
@@ -797,6 +797,12 @@ class NetworkSession{
|
||||
|
||||
}
|
||||
|
||||
public function onEnterWorld() : void{
|
||||
$world = $this->player->getWorld();
|
||||
$world->sendTime($this->player);
|
||||
$world->sendDifficulty($this->player);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return InventoryManager
|
||||
*/
|
||||
|
Reference in New Issue
Block a user