Removing Material

Discussion in 'Plugin Development' started by iWareWolf, May 18, 2014.

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

    iWareWolf

    How can I remove 1 snowball from someones inventory when they have in their inventory 30 snowballs in 1 slot.
     
  2. Offline

    Quantum64

  3. Offline

    blobic123

    If it's in the players hand then you can use
    Code:java
    1. p.getItemInHand().setAmount(--itemstack.getAmount());
     
Thread Status:
Not open for further replies.

Share This Page