Solved Getting the ItemStack the Player Picked up?

Discussion in 'Plugin Development' started by XvBaseballkidvX, Dec 3, 2013.

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

    XvBaseballkidvX

    I have been trying a few different things with the PlayerPickUpItemEvent to get the itemstack the player picked up. So far... no luck.

    event.getItem(); - returns CraftItem
    event.getItem().getType().toString(); - returns DROPPED_ITEM (I did toString because I wanted to see if it printed out GOLD_INGOT or something like that).

    I have no idea how to get the ItemStack the player picked up.

    Any ideas?

    Thank for your reading.
    All help is much appreciated.
     
  2. Offline

    AoH_Ruthless

  3. Offline

    XvBaseballkidvX


    I did that, but it would return something like DROPPED_ITEM :/
     
  4. Offline

    The_Doctor_123

  5. Offline

    AoH_Ruthless

    XvBaseballkidvX likes this.
  6. Offline

    XvBaseballkidvX

Thread Status:
Not open for further replies.

Share This Page