Trying to use EntityDamageByEntityEvent, produces an error "does not have a handler list" How to use EntityDamageByEntityEvent? What event uses this class or how to register a handler?
You can only use the event in EntityDamageEvent PHP: public function onDamage(EntityDamageEvent $event){if($event instanceof EntityDamageByEntityEvent){}}