Method not being called need help

Discussion in 'Plugin Development' started by aPandaification, Jun 13, 2012.

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

    aPandaification

    Korvacs The compiler is complaining about the static method even though I changed everything to static.
     
  2. Offline

    Korvacs

    Whats the message?
     
  3. Offline

    aPandaification

    Korvacs 'Cannot make a static reference to the non-static method execute(string[]) from the type enchant' and the methods are static
     
  4. Offline

    Korvacs

    Show me the updated code :) although i have just discovered that Java is really dumb about when classes can and cannot be static so this might not work out as i had hoped.
     
  5. Offline

    aPandaification

  6. Offline

    Korvacs

    Get rid of this "private Enchant enchant;" and this "this.enchant = new Enchant();" and see if that makes a difference.

    Edit: So i just copied all of your code you posted into eclipse in a new project etc and the only warning i get is that list is a raw type, no errors, seems fine to me?
     
  7. Offline

    aPandaification

    Korvacs okay Maybe I need to recompile will test now.

    It works! Wow thanks a bunch. I realized I had to re-save the code last night and at 2am my brain was in potato mode. Thanks again many panda hugs to you.
     
  8. Offline

    Korvacs

    Glad i could help :)
     
Thread Status:
Not open for further replies.

Share This Page