Error occured while enabling...

Discussion in 'Plugin Development' started by D00py, Sep 25, 2011.

Thread Status:
Not open for further replies.
  1. Hey,

    i´ve got a problem with my plugin...
    When i start my server with the plugin, i get an error, like this:

    Code:
    17:22:26 [SEVERE] Error occurred while enabling Tutorial v0.4 (Is it up to date?
    ): null
    java.lang.NullPointerException
            at me.doopy.tutorial.Tutorial.onEnable(Tutorial.java:67)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Don´t know what to do... It did well yesterday, but today i added some configurabel messages and now... :(

    Help please... :/

    EDIT: Here is the code of the main class.
     
  2. Offline

    Nitnelave

    You only define loots1 as a string array. You have to explicit the declaration line,
    String [] msg = new String[10], loots1 = new String[10];
     
  3. Yep, youre right, noticed that 5 minutes ago :D
    Anyway, very much thanks :D
     
Thread Status:
Not open for further replies.

Share This Page