Code not Working Correctly

Discussion in 'Plugin Development' started by Aephout14, Feb 14, 2015.

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


    Whenever I open the GUI and Select one item, It spawns 3 kits, Not one, I think this has sometihng to do with brackets?

    And yes i have a click listener and interact listener.

    Clicklistener code, The one for the GUI:
  2. Offline


    I do not really understand this part,
    if (clicked.getType()==Material.IRON_HELMET){
    You'r not closing your if-statement but opening something unexisting?
  3. Offline


    @Fillefixsweden Oh Crap, I wasn't thinking about that :p

    @Fillefixsweden The funny thing is, Is when i remove the bracket, 1 error in the bottom of the class says, Clicked cannot be resolved.
    Last edited by a moderator: Feb 14, 2015
  4. First of all you can't create nothing by just adding "{}" somewhere in the code
    Second you'll need to close your if statements... you havn't closed any of them...
Thread Status:
Not open for further replies.

Share This Page