Solved DELETE

Discussion in 'Spigot Plugin Development' started by TheBlackTeddy, May 25, 2016.

  1. DELETE
     
    #1 TheBlackTeddy, May 25, 2016
    Last edited: Jan 27, 2021
  2. Use the inventoryopenevent, check if its a merchant inventory and if so cancel it.
     
    • Agree Agree x 1
  3. Get the holder of the inventory.
     
  4. It will return an InventoryHolder. Check if the holder is an instance of villager and then if so cast villager to the holder and do what you need to do in order to identify the villager.