Here: PHP: <?phpnamespace YourNameSpace;use pocmetmine\Server;use pocketmine\plugin\PluginBase;use pocketmine\Player;use pocketmine\event\Listener;use pocketmine\event\player\PlayerDeathEvent;class YourClass extends PluginBase implements Listener{ public function onEnable(){ $this->getServer()->getPluginManager()->registerEvents($this, $this); } public function onDeath(PlayerDeathEvent $ev){ $p = $ev->getEntity(); $p->addTitle("Text"); }}