Solved How to check if custom item was consumed in PlayerItemConsumeEvent?

Discussion in 'Plugin Development' started by Huffmanbran, Feb 8, 2015.

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

    Huffmanbran

    I am creating a new item with a lore and different effects etc. However I can't figure out how to call the item as a material. Considering it is defined as ItemStack.

    Setting the ItemStack:
    Code:
    
    //solved
    
    
    That's simple and all, but what about returning the ItemStack in the ConsumeEvent ?

    Code:
    
        //solved
    
    

    Thank you!
     
    Last edited: Feb 8, 2015
  2. Offline

    1Rogue

  3. Offline

    Huffmanbran

Thread Status:
Not open for further replies.

Share This Page