Opening a players inventory through a gui?

Discussion in 'Plugin Development' started by The Uprising, Aug 1, 2015.

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

    The Uprising

    Was wondering in what way I would go about opening a players inventory through a gui?

    I am making a plugin that is very simple. all it is suppose to do is when you have a book with a specific name and you right click it the book removes and your inventory pops up. you get to choose one item. That item's durability is reset back to full. How would I accomplish the gui part!! Thanks.
     
  2. Offline

    moe097

  3. Offline

    Jakeeeee

  4. Offline

    The Uprising

    I believe thats what Im looking for :p let me check to make sure it works properly.

    http://pastebin.com/g5A4eA72 here is what I have so far.. How do I make it so when a player clicks an item in their inventory (gui) it runs a line of code?

    EDIT by Timtower: merged posts

    Sub topic : How do I name the player's gui to something specific? like §aRepair Book.

    I want to make sure that the player cant just open a player vault (another gui plugin) and repair every item inside of their pv :p
     
    Last edited: Aug 2, 2015
  5. Offline

    ChipDev

    It would be nice if you could explain. :)
    //EDIT: XD I actually posted on the wrong thread. I meant for the other. Nice code :)
     
Thread Status:
Not open for further replies.

Share This Page