mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Allow offline player data to be provided from a custom source
This commit is contained in:
@ -229,7 +229,11 @@ class NetworkSession{
|
||||
}
|
||||
|
||||
protected function createPlayer() : void{
|
||||
$this->player = $this->server->createPlayer($this, $this->info, $this->authenticated);
|
||||
//TODO: make this async
|
||||
//TODO: what about allowing this to be provided by PlayerCreationEvent?
|
||||
$offlinePlayerData = $this->server->getOfflinePlayerData($this->info->getUsername());
|
||||
|
||||
$this->player = $this->server->createPlayer($this, $this->info, $this->authenticated, $offlinePlayerData);
|
||||
|
||||
$this->invManager = new InventoryManager($this->player, $this);
|
||||
|
||||
|
Reference in New Issue
Block a user