mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Posibility of changing data for handlers, and canceling it
This commit is contained in:
parent
bf24a937b2
commit
504b37cfaa
7 changed files with 72 additions and 21 deletions
|
|
@ -220,7 +220,7 @@ class Entity extends stdClass{
|
|||
if($this->health <= 0 and $this->dead === false){
|
||||
$this->dead = true;
|
||||
if($this->player !== false){
|
||||
$this->server->handle("onPlayerDeath", array("name" => $this->name, "cause" => $cause));
|
||||
$this->server->handle("player.death", array("name" => $this->name, "cause" => $cause));
|
||||
}
|
||||
}elseif($this->health > 0){
|
||||
$this->dead = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue