InventoryClickEvent - Shift-Click place action?

Discussion in 'Plugin Development' started by OrangeGuy, May 15, 2014.

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

    OrangeGuy

    I am trying to stop players from shift-clicking an item and move it inside a chest. I tried "event.isShiftClick()", however, players should be able to shift-click and move an item outside the chest. Is there anyway to do it?
     
  2. Offline

    NathanWolf

    You want "if (event.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY) {}", I believe. Works for me :)
     
    OrangeGuy likes this.
Thread Status:
Not open for further replies.

Share This Page