getItemInHand(), ItemStack and the amout from this item. How? :)

Discussion in 'Plugin Development' started by Hourglass, Jan 25, 2011.

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

    Hourglass

    Hello ^^

    I want to write a small plugin for a marketplace.
    Now I don't know how it works. I'd try around for some hours but nothing works.
    I need to know how getItemInHand(), ItemStack and the amount of this item works.

    Thank you for your help.
    Hourglass.
     
  2. Offline

    Mattie

  3. Offline

    Hourglass

    ( I hope my english is enough for that. xD )

    I want to write a plugin to sell items. The player command"/sell" sell what is in your hand.
    The command "/buy [ItemID] [amount]" give you that what you want. ( But that works already fine ;) )

    Now I try what you wrote.

    Sorry for my bad english x)
    --- merged: Jan 26, 2011 8:32 PM ---
    It works well, but I have one problem.
    If I want to set the amount to 0, one block is in the inventory.
    How could I delete it complete? ( Only this ItemStack )
     
Thread Status:
Not open for further replies.

Share This Page