Hi there. I don't see any plugins regarding to Void Kill message. As the situation When "A" player punch "B" player to the void. It will show "B" player has punch to the void by "A" player. How I exactly implement it? Regards.
PHP: public function onPlayerDeath(PlayerDeathEvent $e){$cause = $e->getcause();if($cause === EntityDamageEvent::CAUSE_VOID){//Code to be executed. Example:$this->getServer()->broadcastMessagge($e->getDamager(). "pushed ". $e->getEntity(). "into the void");} } Didn't have time to test. But should do the work
You're right. Actually i don't how to do that. Maybe adding an if($Damager instanceof Player). But i don't think this will work tough.
You will need to save the last damager of the last EntityDamageByEntityEvent for every player (maybe in combination with a timestamp so it doesn't count every void-fall as a push)