mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Added PlayerDeathEvent methods for inventory keeping
This commit is contained in:
@ -29,6 +29,7 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
private $deathMessage;
|
||||
private $keepInventory = false;
|
||||
|
||||
/**
|
||||
* @param Player $entity
|
||||
@ -55,4 +56,12 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
||||
$this->deathMessage = $deathMessage;
|
||||
}
|
||||
|
||||
public function getKeepInventory(){
|
||||
return $this->keepInventory;
|
||||
}
|
||||
|
||||
public function setKeepInventory($keepInventory){
|
||||
$this->keepInventory = (bool) $keepInventory;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user