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