mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Fixed player death name
This commit is contained in:
@ -676,7 +676,7 @@ class Entity extends stdClass{
|
||||
}
|
||||
if($this->player instanceof Player){
|
||||
$this->player->blocked = true;
|
||||
$this->server->api->dhandle("player.death", array("name" => $this->name, "cause" => $cause));
|
||||
$this->server->api->dhandle("player.death", array("player" => $this->player, "cause" => $cause));
|
||||
}else{
|
||||
$this->close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user