Solved InventoryClickEvent slot checking

Discussion in 'Plugin Development' started by Scullyking, Jun 29, 2015.

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

    Scullyking

    How can I check that the slot clicked in a custom inventory is part of the custom inventory and not the players inventory?

    Open a chest and you'll see that I mean. I need to only listen to clicks in the chest, not the players inventory.
     
  2. Offline

    Elimnator

    Just check the raw slot number.
     
    Scullyking likes this.
  3. Offline

    Scullyking

    @bwfcwalshy
    This wouldn't work because both containers come under the same inventory name!

    @Elimnator
    Ah of course, thanks!
     
  4. @Scullyking Your player inventory and custom inventory use the same name? Ok then.

    If this is solved please mark the thread accordingly.
     
  5. Offline

    Scullyking

    @bwfcwalshy
    [​IMG]
    This is what I mean. Both parts of the inventory come under the same name when you create a CUSTOM inventory (Bukkit.createInventory())

    Anywho - marked as solved.
     
Thread Status:
Not open for further replies.

Share This Page