How would it cancel arrow damaging the player who shoot the arrow But if the shooter isn’t shooter than kill them
Listen to EntityDamageByChildEntityEvent and check whether event->getChild()->getOwningEntity() equals event->getEntity().