Open a GUI upon another one

Discussion in 'Plugin Development' started by XgXXSnipz, May 28, 2014.

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

    XgXXSnipz

    So im making a GUI plugin.. this is very hard to explain so let me give you an example :)

    So I open a GUI and there is 4 slots the first one has a piece of redstone, the next slot has a ender pearl, and the next one has a diamond and the last one has a emerald

    Now my question is how do I make it so if I click the redstone it will open a different GUI and close the current one?
     
  2. Offline

    Xyplo

    We need to see a bit of your code first.
     
  3. Offline

    Gater12

    XgXXSnipz
    Listen for when the player clicks on the red stone -> Open the other inventory
     
  4. Offline

    GeorgeeeHD

    XgXXSnipz InventoryClickEvent if item is diamond in your special GUI, open a different inventory.
     
  5. Offline

    glen3b

    You have to open the other inventory (in a scheduled task) to happen a tick after the InventoryClickEvent is called.

    See the JavaDocs:
     
Thread Status:
Not open for further replies.

Share This Page