public function setKeepExperience(bool $keepExperience) { $this->keepExperience = $keepExperience; }
public function onDeath(PlayerDeathEvent $event) { $event->setKeepInventory($this->keepInventory); $event->setKeepExperience($this->keepExperience); }