Fixed player death name

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-12 13:55:26 +02:00
parent feaecbcd60
commit c138cb2797
2 changed files with 22 additions and 21 deletions

View File

@ -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();
}