check if clicked with cursor (InventoryClickEvent)

Discussion in 'Spigot Plugin Development' started by kinukin, Jun 9, 2017.

  1. How can I check if a slot was clicked with the cursor?

    Thank you
     
  2. use inventoryclickevent
     
  3. you can use this in InventoryClickEvent:
    Code (Text):
    switch(event.getSlot()) {
    case 1:
        //yourcode
        break;
    case 2:
        //yourcode
        break;
    ecc..