Block Inventory Slots (stop them from being shift-clicked)

Discussion in 'Plugin Development' started by tbsman, Dec 23, 2012.

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

    tbsman

    Hey,

    I want to stop users from shift-clicking certain items into certain slots.
    Is there any right way to do this?
     
  2. use the inventoryclick event
     
  3. Offline

    tbsman

    How should I use it?
    I have already blocked the slot so people can't put the item in there, but they can still shift-click it in.
     
  4. Offline

    fireblast709

    Check if event.isShiftClick(), and they are clicking in the other part of the inventory
     
  5. Offline

    tbsman

    I tried that, but is there a way to get in what slot the Item went? because Slot 1 should be allowing it, but slot 2 shouldn't. At the moment, both are not allowing it.
     
  6. Offline

    fireblast709

    You should base this of how minecraft handles this ;3
     
  7. Offline

    tbsman

    And the derp of the day goes to me.
    Should have thought of that earlier.
     
Thread Status:
Not open for further replies.

Share This Page