So, how do I get the player's name or Player object with onPlayerDeath? This seemed too short so I'm just adding this random text, and you just wasted 5 seconds of your life reading it. Sorry.
PHP: public function onDeath(PlayerDeathEvent $event) { $cause = $event->getPlayer()->getLastDamageCause(); if ($cause instanceof EntityDamageByEntityEvent and $cause->getDamager() instanceof Player) { $killer = $cause->getDamager(); } }