mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Do not call PlayerLoginEvent during the Player constructor
this closes a lot of loopholes in the login sequence that plugins were using to cause crashes.
This commit is contained in:
@@ -234,6 +234,10 @@ class NetworkSession{
|
||||
return;
|
||||
}
|
||||
$this->player = $player;
|
||||
if(!$this->server->addOnlinePlayer($player)){
|
||||
return;
|
||||
}
|
||||
|
||||
$this->invManager = new InventoryManager($this->player, $this);
|
||||
|
||||
$effectManager = $this->player->getEffects();
|
||||
|
Reference in New Issue
Block a user