GUI plugin

Discussion in 'Plugin Development' started by BakedPotato_HD, Jun 2, 2015.

Thread Status:
Not open for further replies.
  1. I want to make a GUI plugin that opens a GUI when you click with a chest in your hand. There should be 4 things in the chest:
    - Spawn --> Tps to spawn
    - Rules --> Sends the player all the rules
    - Doneren --> The player does /buy
    - Map --> Gives the player a map and if he scrolls away it disapears
    The last 2 do not work.
    On Inventory Click:
    http://pastebin.com/xv5aA6ba
    Console:
    http://pastebin.com/aChY0d99
    How can I fix this?
    Thanks
     
  2. Offline

    Zombie_Striker

    Fix line 110, and follow naming conventions.
     
  3. What do you mean with "fix"?
     
  4. Offline

    Zombie_Striker

  5. Offline

    Zombie_Striker

  6. @Zombie_Striker Sorry for me being a noob, but I don't understand what a NullPointerException is. Do you know how to fix it?
    Thanks
     
  7. Offline

    Zombie_Striker

  8. Zombie_Striker likes this.
  9. I did google it but didn't really understand it :)
    I actually got it to work by removing something and coding that part from the beginning :)
     
  10. Offline

    poepdrolify

    Check if current item is null.
     
Thread Status:
Not open for further replies.

Share This Page