public function getEntity() { return $this->entity; }
/** * @priority LOW */ public function onPlayerDeath(PlayerDeathEvent $e) { list($timer, $msg) = $this->getState($e->getEntity(), [0, ""]); if (time() - $timer > 1) { return; } $e->setDeathMessage($msg); $this->unsetState($e->getEntity()); }