Interaction with the villagers

Discussion in 'Plugin Development' started by Piatnochka, Jan 13, 2019 at 9:17 AM.

  1. Offline

    Piatnochka

    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. @Piatnochka
    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

    xXraxFraeyXx

    If you get the
    Code:
    InventoryClickEvent
    and check if it is a trading-inventory, you can get the ItemStacks by accesing the diffrent Slot-Ids.
     

Share This Page