Solved: PHP: public function onProjectileHit(ProjectileHitEvent $e){ if($e->getEntity() instanceof Arrow){ $shootentity = $e->getEntity()->getOwningEntity(); if($shootentity instanceof Player){ $shootentity->sendMessage("you are shooted from bow lol"); } } }