Solved GUI Problem

Discussion in 'Plugin Development' started by xManfro, Jan 5, 2015.

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

    xManfro

    When ever I use an item in the inventory it lets me remove it from the inventory. How do I stop this.

    code: http://pastebin.com/GN6GU8hQ
     
  2. Offline

    Theodossis

    You have to define the inventory at the start of the InventoryClickEvent. Like:
    Code:
    if(e.getInventory().getName().equals("Inventory Name Here")) {
    and end it to last line of event
    EDIT: e.getInventory()
     
  3. Offline

    xManfro

    I forgot that I changed the name of the inventory. Thanks anyways
     
Thread Status:
Not open for further replies.

Share This Page