Plugin has Error: NullPointer Exception

Discussion in 'Plugin Development' started by LuckyG133, Sep 17, 2013.

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

    LuckyG133

  2. Offline

    xxMOxMOxx

    Post the error log too
     
  3. Offline

    LuckyG133

  4. Offline

    PolarCraft

    Is that a custom plugin?
     
  5. Offline

    LuckyG133

    Yes my brother has been working on it for quite some time.
     
  6. Offline

    PolarCraft

    Does he have a plugin.yml?
     
  7. Offline

    timtower Administrator Administrator Moderator

  8. Offline

    LuckyG133

    I'm sorry. I have no idea what line 45 means here. Yes, there is a plugin.yml made that he said he set up correctly; obviously not since the plugin is broken now.

    Ok NullPointer was fixed. My brother figured out what was wrong. Now it is giving a whole new error. Can someone please just download the plugin from the link above and check it for errors?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  9. Offline

    xxMOxMOxx

    Who is the plugin author?
     
  10. Offline

    LuckyG133

    My brother. He made it himself as a CUSTOM plugin!
     
  11. Offline

    xxMOxMOxx

    Have you talked to him about this? If he made it, he will have the best understanding of how it works
     
  12. Offline

    Block34

    Wait can you post the server.log so people can actually see whats wrong.
     
  13. Offline

    LuckyG133

    Server log is at my second or third post here. I tell him every answer IO get from here and nothing has helped... However we are getting close. It now says (Is it up to date?) next to the error.
     
  14. Offline

    Necrodoom

    Moved to plugin development since this is more or less asking for help with a local plugin.
     
  15. Offline

    WauloK

    Post the server log and .java file to pastebin then give us links.
     
  16. Offline

    SkillSam

    LuckyG133
    Looking at your brother's code, I'm pretty sure only your main class can "extends JavaPlugin". Then for the other classes you can create the class constructor and either register them as a command or listener if necessary.
    Code:
    public Main pl;
     
    public <AnyClass> (Main i) {
        pl = i;
    }
     
Thread Status:
Not open for further replies.

Share This Page