1. Code:
     object OnDispenserBonus(ResourceDispenser dispenser, BasePlayer player, Item item)
            {
                if (player.IsAdmin)
                    Puts("OnDispenserBonus works!");
                return null;
            }
    (21:14:30) | [TestPlugin] OnDispenserBonus works!
    (21:14:30) | [TestPlugin] OnDispenserBonus works!

    I tested stone, sulfur and metal nodes. It seems that whenever you trigger the finishing bonus on a metal node, the hook is called twice. I was using a salvaged pick. Trees seem to be OK.

    Oxide issue? Game bug? Something I goofed?
     
  2. Calytic

    Calytic Community Admin Community Mod

    Working as intended.

    The hook is triggered once for every bonus item type.

    I.E. If you receive a bonus with HQM and Ore then it will be called once for the HQM and again for the Ore.