onInventoryClick error?

Discussion in 'Plugin Development' started by Krotass, Dec 6, 2013.

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

    Krotass

    *SOLVED*

    Hey guys. I'm having a weird error which I cannot understand. Could anyone help me?

    Error: void is an invalid type for the variable onInventoryClick


    Heres a little picture of the error

    [​IMG]

    [​IMG]
     
  2. Offline

    agokhale1

    Krotass
    You should probably delete it and type it again, which should fix the problem. Eclipse sometimes does that, it's happened to me before.
     
  3. Offline

    Wolfey

    ^ Try that, happens a lot to my eclipse.

    Also did you block out your class name and stuff? Doesn't really matter but just looks funny.
     
  4. Offline

    Krotass



    Doesn't work
     
  5. Offline

    Wolfey

    Try posting the pic but without anything blocked.
     
  6. Offline

    Krotass


    I found the bug itself :) It was just me derping around
     
  7. Offline

    ZeusAllMighty11

    If anyone wants to know the issue(s):
    - No class name declaration nor inheritance (if any)
    - Missing 2 } braces
     
  8. Offline

    Wantsome909

    Krotass add a 1 to the end of it
     
  9. Offline

    Wolfey

    If you look closely you'll see that he cut of that part of the class, I guess he wants to hide it for some reason.
     
    ZeusAllMighty11 likes this.
  10. Offline

    Krotass


    Yeahh... To avoid 100 lines of code. The other stuff is something just a code which makes sure players wont be able to break or place blocks. That's it
     
  11. Offline

    Wolfey

    My bad, couldn't see the line numbers so I didn't know you had a bunch of other codes that were not relevant to the topic at all. Apologies.
     
  12. Offline

    Krotass


    I wans't trying to sound like an idiot insulting you. Just telling you general info :D
     
Thread Status:
Not open for further replies.

Share This Page