Solved 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?

    Oh I knew how to do it now. Just use (event.getAction == InventoryAction.MOVE_TO_OTHER_INVENTORY && evnet.getRawSlot() != event.getSlot())

    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