Detecting Items Moved From Block With Inventory

Discussion in 'Plugin Development' started by Nonam82, May 17, 2014.

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

    Nonam82

    So I'm trying to get my plugin to record all items that a player adds or removes from a chest. Is InventoryDragEvent the right event to call, and if so, what method do I use to get the item types moved, and if possible the quantity? I already checked the Bukkit API page for this event (http://jd.bukkit.org/rb/apidocs/org/bukkit/event/inventory/InventoryDragEvent.html), but was confused on how to use it. I don't want to record any items that were moved from one slot to another within the same inventory, only ones that were moved from chest to player or player to chest.

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
Thread Status:
Not open for further replies.

Share This Page