Error

Discussion in 'Plugin Development' started by Techno360!, Sep 10, 2018.

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

    Techno360!

    Hey guys!

    I got an error from this plugin (this is just the main class) and since I'm a new developer I don't really understand what's happened to make this error. I assume it's my getAPI() method because it says 'null'. But how do I fix it? I have TitleAPI in plugin folder and it is listed as a dependency in plugin.yml.

    Thanks
    Techno
     
  2. Offline

    Zombie_Striker

    Code:
    at com.anand.server.Main.onEnable(Main.java:30)
    What is line 30 of the Main class for com.anand.server.Main (you posted com.bob.server.Main)
     
  3. Offline

    Techno360!

    it's "getCommand("news").setExecutor(new News());". But how is that the error?

    Also, they're the same file, I was trying to hide the name of my friend who made it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  4. Offline

    Zombie_Striker

    @Techno360!
    If it was your friend who made it, have you tried contacting them about the issue?
     
  5. Offline

    Techno360!

    Yes, him and I both work on this plugin and it was working fine until after I edited it and something errored.

    It seems as if I forgot to register the command in my plugin.yml. Sorry to bother everyone with this.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 10, 2018
Thread Status:
Not open for further replies.

Share This Page