mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
Entity death status
This commit is contained in:
parent
fe7138b21e
commit
e1cf3cc25e
@ -361,6 +361,7 @@ class Entity extends stdClass{
|
|||||||
if($this->player !== false){
|
if($this->player !== false){
|
||||||
$this->server->api->dhandle("player.death", array("name" => $this->name, "cause" => $cause));
|
$this->server->api->dhandle("player.death", array("name" => $this->name, "cause" => $cause));
|
||||||
}
|
}
|
||||||
|
$this->server->api->dhandle("entity.event", array("entity" => $this, "event" => 3)); //Entity dead
|
||||||
}elseif($this->health > 0){
|
}elseif($this->health > 0){
|
||||||
$this->dead = false;
|
$this->dead = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user