NullpointerException error

Discussion in 'Plugin Development' started by dumbowithquestions, Jun 12, 2020.

Thread Status:
Not open for further replies.
  1. I need help with some code I was doing a tutorial and am fairly new to minecraft java, but have had this issue a couple of times so here are my scripts and tell me please what the problem is. the problem is in the second screenie. it has a nullpointerexception and when I go to minecraft the command won't register, but the plugin does show up.

    Annotation 2020-06-12 141837.png Annotation 2020-06-12 141900.png Annotation 2020-06-12 141912.png
     
    Last edited: Jun 12, 2020
  2. Offline

    timtower Administrator Administrator Moderator

  3. well the plugin works, but when I enter the command nothing happens

    well the plugin works, but when I enter the command nothing happens

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

    caderapee

    @dumbowithquestions do your plugin load ? i dun think the plugin.yml in the folder ressources will do the job
     
  5. Offline

    Machine Maker

    It looks like OP is using the Minecraft Dev Intellij plugin, it auto setup the plugin.yml right where its supposed to be so its probably something else.

    I suggest you add some debug statements in your command executor to see if its running at all when you execute the command.
     
  6. Offline

    Strahan

    I'd also recommend that you do not use System.out.println; use the logger. There is also no need to send the enable message; the server already sends enable messages.
     
  7. Offline

    Legendary_zotar

Thread Status:
Not open for further replies.

Share This Page