Command InventoryGUI

Discussion in 'Plugin Development' started by therocklobster, Apr 21, 2014.

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

    therocklobster

    hello
    I would like to know what the code would be to make an inventory menu and then when you click on a certain icon it would execute command.
    Thanks
    Rob
     
  2. Offline

    beeselmane

    you would need to create a custom inventory, and add items to it. You would need an InventoryClickEvent to see what they clicked on, and a function to open the inventory.. That's pretty much it
     
  3. Offline

    BlazingBroGamer

    Look it up on YouTube. TheBCBroz has a good tutorial on it. Here is the link for it:
     
  4. Offline

    therocklobster

    thank you, although i would also like to know how to make it run a command from a different plugin.
     
  5. Offline

    BlazingBroGamer

    therocklobster
    If I am following right, if you want to make a person run a command from a different plugin, such as essentials, you would use
    Code:
    player.performCommand("Command Here!")
     
    therocklobster likes this.
  6. Offline

    therocklobster

    thank you!
     
  7. Offline

    BlazingBroGamer

    Welcome, and also please mark the thread as solved.
     
Thread Status:
Not open for further replies.

Share This Page