Tracking when a player clicks an item out of an Inventory

Discussion in 'Plugin Development' started by orange451, Mar 14, 2013.

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

    orange451

    I am pretty sure this is possible, but I'm afraid that I just don't know the proper Event for it. I am looking for a way to have an event trigger when a player clicks an item from an Inventory class.

    I tried using the player.getItemOnCursor() method, but there isn't an itemstack put onto a players cursor when they hold shift, and click an item.

    Any ideas?
     
  2. Offline

    fireblast709

    getRawSlot() and getItem(int slot) are your friends, use them :p
     
  3. Offline

    orange451

    So there isn't an event to track when an item is clicked off of an inventory?
     
  4. Offline

    fireblast709

    Do you mean the PlayerDropItemEvent? Or slot -999?
     
  5. Offline

    Debels

    InventoryClickEvent
     
  6. Offline

    orange451

    Cant believe I missed that. Thank you.
     
Thread Status:
Not open for further replies.

Share This Page