Interaction with the villagers

Discussion in 'Plugin Development' started by Piatnochka, Jan 13, 2019.

Thread Status:
Not open for further replies.
  1. Offline


    Hi to all! I need to check all information about trading between player and villager in my plugin, but i dont know how to do it. Maybe there is a special event for this or maybe you have an idea how to do this? Thanks.
    P.S. Sorry for bad English)
  2. Offline


    I think you would need InventoryClickEvent, check if the type is MERCHENT, then go from there, but that's really all I can think of.
    torpkev likes this.
  3. Offline


    If you get the
    and check if it is a trading-inventory, you can get the ItemStacks by accesing the diffrent Slot-Ids.
Thread Status:
Not open for further replies.

Share This Page