Solved -

Discussion in 'Plugin Development' started by PlayFriik, Dec 3, 2014.

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

    PlayFriik

    Fixed.
     
  2. Offline

    Skionz

    PlayFriik Why wouldn't you be able to take items out of it? Cancel the InventoryClickEvent when necessary.
     
  3. Offline

    PlayFriik

    Because I wanna make a shop thingy or what ever I want... This InventoryClickEvent disables absolutely all moving items, but I want that it disables only when I open the custom gui.
     
  4. Offline

    SuperOriginal

    Check the inventory name, or some component that separates your gui from the rest
     
  5. Offline

    Skionz

    PlayFriik I said cancel it when necessary, not completely.
     
  6. Offline

    DairyKing__

    As Skionz said, cancel the InventoryClickEvent when necessary. Basically check if the inventory they click in is the custom one you created, than cancel all clicking in that inventory.
     
  7. Offline

    Hex_27

    PlayFriik
    Check if event.getInventory().getName().equals("Test")

    if it is, cancel it.
     
  8. Offline

    PlayFriik

    Thank you, it worked.
     
Thread Status:
Not open for further replies.

Share This Page