gui

Discussion in 'Spigot Plugin Development' started by TheFuzzyHead5, May 29, 2017.

  1. How can I tell when someone is putting something into a GUI?

    I can easily tell when they click, but the click also registers when they pick an item up on their cursor.

    For example,

    - Clicks item (now on cursor)
    - Puts it in GUI (no longer on cursor) <--- This is what I want, how can I tell if they have done this
     
  2. I would recommend checking the InventoryClickEvent -> #getAction() method as it returns a different InventoryAction -> https://jd.bukkit.org/org/bukkit/event/inventory/InventoryAction.html