using System; namespace Oxide.Plugins { [Info("Test", "IIIaKa", "0.1.0")] class Test : RustPlugin { void OnAnimalDungProduce(RidableHorse2 horse) => PrintWarning($"OnAnimalDungProduce"); void OnAnimalDungProduced(RidableHorse2 horse, Item item) => PrintWarning($"OnAnimalDungProduced"); void OnEntityTakeDamage(RidableHorse2 horse, HitInfo info) { var attacker = info?.Initiator as BasePlayer; if (attacker != null && horse != null) { horse.DoDung(); } } } }