InventoryClickEvent help

Discussion in 'Plugin Development' started by KaBob, Dec 16, 2012.

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

    KaBob

    I can't figure out who to tell which inventory was clicked using the InventoryClickEvent. I want to let people move stuff in their inventory, but not in the chest they have open. Is there an easy way to do this?
     
  2. Offline

    fireblast709

    1. use InventoryType to check if it is a chest
    2. use the size to check if it is a double chest
    3. then check what slot they are using (depending on the size you can determine if it is in the own inventory or if they try to place in the chest
    4. don't forgot to check for shift-clicking
     
Thread Status:
Not open for further replies.

Share This Page