What the heck is an <init> method?

Discussion in 'Plugin Development' started by lego6245, Mar 4, 2011.

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

    lego6245

    Hi. A lot of users have been complaining that they cannot use my plugins. I found the error that is crashing them (even though it doesn't seem to do it on my end)

    So, my question is, what the heck is this <init> method that I am missing, and is this just an issue with the craftbukkit version that they are using?

    java.lang.NoSuchMethodException: com.enigmasm.serverbot.ServerBot.<in it>()
     
  2. Offline

    gnftoxic

    Could you post the full exception?
     
  3. Offline

    Dinnerbone Bukkit Team Member

    Constructor. In your case, it'll be:

    public ServerBot() {

    }
     
  4. Offline

    retsrif

    Mine gives a NullPointerException: retsrif.Refreshment.RBlockListener.<init>(RBlockListener.java:14)
    Any help?
     
  5. Offline

    Dinnerbone Bukkit Team Member

    Line 14 of RBlockListener.java has a null pointer exception. That's all I can tell you.
     
  6. Offline

    retsrif

    Now that you mention it, I have a problem with my file creation... thanks! Though I also get another error, and line 14 in this error is the logger:
    retsrif.Refreshment.Refreshment.<init>(Refreshment.java:14)
     
  7. Offline

    Dinnerbone Bukkit Team Member

    Then you have something wrong on like 14. I'm sorry but without posting more details we really can't tell you more. Make your own thread :)
     
  8. Offline

    retsrif

    I have. It's called Invalid Plugin Exception and is the first thread currently. Care to take a look at it? :)
     
Thread Status:
Not open for further replies.

Share This Page