You can use the InventoryClickEvent for this. http://jd.bukkit.org/rb/doxygen/d9/...vent_1_1inventory_1_1InventoryClickEvent.html