PHP: public function onDamage(EntityDamageEvent $event){ if ($event instanceof EntityDamageByEntityEvent && $event->getDamager() instanceof Player){ $event->setDamage($event->getDamage() * 1.2); }}