Merchant Inventory - Item Meta support

Discussion in 'Plugin Development' started by Dudemister1999, Nov 4, 2014.

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

    Dudemister1999

    Hello! I need some assistance. I found a tutorial for making custom merchant inventories. That works, and it's perfect! But I need to make sure that item meta is supported. For instance:

    I have a stick, called "&cTest Stick" (Colored), and the merchant UI gives you an emerald in return. With the code I found, you can shove any old stick in the box, and a shiny emerald will pop out.

    The code is from a utility called MerchantAPI.

    Thanks!
    -Hydroxocobalamin (OCHbl)
     
  2. Offline

    Unica

    Dudemister1999

    • InventoryClickEvent
    • Do Null checks for item
    • Check if inventory equals Merchant inventory
    • Check if item is equal to desired itemstack
    Post code ;)
     
Thread Status:
Not open for further replies.

Share This Page