Solved Plugin Error Enabling?

Discussion in 'Plugin Development' started by king_of_all96543, Jan 1, 2014.

Thread Status:
Not open for further replies.
  1. Ok Well for some reason my plugin is getting an error while its enabling it says the plugin enables, but then it says error while enabling i need help as i am not sure where the error is coming from thanks in advance and here is the console error
    Code:
    [20:39:05] [Server thread/INFO]: Starting minecraft server version 1.7.2
    [20:39:05] [Server thread/INFO]: Loading properties
    [20:39:05] [Server thread/INFO]: Default game type: SURVIVAL
    [20:39:05] [Server thread/INFO]: Generating keypair
    [20:39:06] [Server thread/INFO]: Starting Minecraft server on *:25565
    [20:39:09] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.6.4-R2.0-2-g7e1ac0a-b2923jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.1-SNAPSHOT)
    [20:39:09] [Server thread/INFO]: [ToxicGames] Loading ToxicGames v0.1
    [20:39:09] [Server thread/INFO]: Preparing level "world"
    [20:39:10] [Server thread/INFO]: Preparing start region for level 0 (Seed: 1601706694558613129)
    [20:39:11] [Server thread/INFO]: Preparing spawn area: 0%
    [20:39:11] [Thread-7/INFO]: ----- Bukkit Auto Updater -----
    [20:39:11] [Thread-7/INFO]: It appears that you're running a Development Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.
    [20:39:11] [Thread-7/INFO]: If you would like to be kept informed about new Development Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'dev'.
    [20:39:11] [Thread-7/INFO]: With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.
    [20:39:11] [Thread-7/INFO]: If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.
    [20:39:11] [Thread-7/INFO]: ----- ------------------- -----
    [20:39:12] [Server thread/INFO]: Preparing spawn area: 18%
    [20:39:13] [Server thread/INFO]: Preparing spawn area: 44%
    [20:39:14] [Server thread/INFO]: Preparing spawn area: 74%
    [20:39:15] [Server thread/INFO]: Preparing start region for level 1 (Seed: 1601706694558613129)
    [20:39:16] [Server thread/INFO]: Preparing spawn area: 22%
    [20:39:17] [Server thread/INFO]: Preparing spawn area: 60%
    [20:39:18] [Server thread/INFO]: Preparing start region for level 2 (Seed: 1601706694558613129)
    [20:39:19] [Server thread/INFO]: Preparing spawn area: 53%
    [20:39:19] [Server thread/INFO]: [ToxicGames] Enabling ToxicGames v0.1
    [20:39:19] [Server thread/INFO]: [ToxicGames] [TG] Has been Enabled for beta testing!
    [20:39:19] [Server thread/ERROR]: [B]Error occurred while enabling ToxicGames v0.1 (Is it up to date?)[/B]
    [20:39:19] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [20:39:20] [Server thread/INFO]: Done (10.530s)! For help, type "help" or "?"
    [20:39:24] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2124ms behind, skipping 42 tick(s)
    [20:39:29] [Server thread/INFO]: CONSOLE: Stopping the server..
    [20:39:29] [Server thread/INFO]: Stopping server
    [20:39:29] [Server thread/INFO]: [ToxicGames] Disabling ToxicGames v0.1
    [20:39:29] [Server thread/INFO]: Saving players
    [20:39:29] [Server thread/INFO]: Saving worlds
    [20:39:29] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
    [20:39:37] [Server thread/INFO]: Saving chunks for level 'world_nether'/Nether
    [20:39:41] [Server thread/INFO]: Saving chunks for level 'world_the_end'/The End
    
     
  2. Offline

    Gater12

    king_of_all96543 Use the latest Beta Build (1.7.2R0.2). Earlier development versions of 1.7.2 may not print the stack trace.
     
  3. Gater12 ok ill try that

    Gater12 ok i did what you said and this is the console error i got.
    Code:
    [20:55:17] [Server thread/INFO]: Starting minecraft server version 1.7.2
    [20:55:17] [Server thread/INFO]: Loading properties
    [20:55:17] [Server thread/INFO]: Default game type: SURVIVAL
    [20:55:17] [Server thread/INFO]: Generating keypair
    [20:55:18] [Server thread/INFO]: Starting Minecraft server on *:25565
    [20:55:21] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0.2-b2974jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.2)
    [20:55:22] [Server thread/INFO]: [ToxicGames] Loading ToxicGames v0.1
    [20:55:22] [Server thread/INFO]: Preparing level "world"
    [20:55:22] [Server thread/INFO]: Preparing start region for level 0 (Seed: 1601706694558613129)
    [20:55:23] [Server thread/INFO]: Preparing spawn area: 0%
    [20:55:24] [Server thread/INFO]: Preparing spawn area: 19%
    [20:55:25] [Thread-6/INFO]: ----- Bukkit Auto Updater -----
    [20:55:25] [Thread-6/INFO]: It appears that you're running a Beta Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.
    [20:55:25] [Thread-6/INFO]: If you would like to be kept informed about new Beta Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'beta'.
    [20:55:25] [Thread-6/INFO]: With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.
    [20:55:25] [Thread-6/INFO]: If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.
    [20:55:25] [Thread-6/INFO]: ----- ------------------- -----
    [20:55:25] [Server thread/INFO]: Preparing spawn area: 40%
    [20:55:26] [Server thread/INFO]: Preparing spawn area: 65%
    [20:55:27] [Server thread/INFO]: Preparing spawn area: 94%
    [20:55:27] [Server thread/INFO]: Preparing start region for level 1 (Seed: 1601706694558613129)
    [20:55:28] [Server thread/INFO]: Preparing spawn area: 17%
    [20:55:30] [Server thread/INFO]: Preparing spawn area: 50%
    [20:55:31] [Server thread/INFO]: Preparing start region for level 2 (Seed: 1601706694558613129)
    [20:55:32] [Server thread/INFO]: Preparing spawn area: 52%
    [20:55:32] [Server thread/INFO]: [ToxicGames] Enabling ToxicGames v0.1
    [20:55:32] [Server thread/INFO]: [ToxicGames] [TG] Has been Enabled for beta testing!
    [20:55:32] [Server thread/ERROR]: Error occurred while enabling ToxicGames v0.1 (Is it up to date?)
    java.lang.NullPointerException
        at me.toxic.games.Main.onEnable(Main.java:37) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:218) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:384) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:298) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:280) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
    [20:55:32] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [20:55:33] [Server thread/INFO]: Done (10.814s)! For help, type "help" or "?"
    [20:55:37] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2173ms behind, skipping 43 tick(s)
    [20:55:47] [Server thread/INFO]: Unknown command. Type "help" for help.[m
    [20:55:49] [Server thread/INFO]: CONSOLE: Stopping the server..[m
    [20:55:49] [Server thread/INFO]: Stopping server
    [20:55:49] [Server thread/INFO]: [ToxicGames] Disabling ToxicGames v0.1
    [20:55:49] [Server thread/INFO]: Saving players
    [20:55:49] [Server thread/INFO]: Saving worlds
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  4. Offline

    Gater12

  5. Gater12 i just saw the Line 37 and erased what was there. I was trying to make ingredients such as, cacti soup and chocolate milk

    Gater12 Ok i had a problem and i figured it out. I was trying to set the world spawn location in the onEnable. if i cant set it in the onEnable where can i set it at?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  6. king_of_all96543
    Hello there. :)
    Okay. How are you setting the world spawn location?

    Code:java
    1. world.setSpawnLocation(x, y, z);
     
Thread Status:
Not open for further replies.

Share This Page