mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Closes #3832
This commit is contained in:
parent
3a184ddf97
commit
21c2e2d429
@ -34,8 +34,8 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
|||||||
private $keepInventory = false;
|
private $keepInventory = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Player $entity
|
* @param Player $entity
|
||||||
* @param Item[] $drops
|
* @param Item[] $drops
|
||||||
* @param string|TextContainer $deathMessage
|
* @param string|TextContainer $deathMessage
|
||||||
*/
|
*/
|
||||||
public function __construct(Player $entity, array $drops, $deathMessage){
|
public function __construct(Player $entity, array $drops, $deathMessage){
|
||||||
@ -50,6 +50,13 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
|||||||
return $this->entity;
|
return $this->entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Player
|
||||||
|
*/
|
||||||
|
public function getPlayer(){
|
||||||
|
return $this->entity;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return TextContainer|string
|
* @return TextContainer|string
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user