CrateKeys Internal error

Discussion in 'Spigot Plugin Help' started by Wouter77, Jun 3, 2016.

  1. Hello guys,

    I was working on our server with CrateKeys but i can't get it to work...
    Here is my code:
    Code (Text):

    03.06 17:34:55 [Server] [Informatie] Wouter77 issued server command: /cratekeys open Wouter77 Vote
    03.06 17:34:55 [Server] ERROR null
    03.06 17:34:55 [Server] [Informatie] org.bukkit.command.CommandException: Unhandled exception executing command 'cratekeys' in plugin CrateKeys v2.4.4
    03.06 17:34:55 [Server] [Informatie] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:640) ~[spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1135) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:970) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_91]
    03.06 17:34:55 [Server] [Informatie] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_91]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.SystemUtils.a(SystemUtils.java:19) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:714) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:653) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:556) [spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
    03.06 17:34:55 [Server] [Informatie] Caused by: java.lang.NullPointerException
    03.06 17:34:55 [Server] [Informatie] at me.picknchew.cratekeys.C.a(C.java) ~[?:?]
    03.06 17:34:55 [Server] [Informatie] at me.picknchew.cratekeys.Crate.getReward(Crate.java) ~[?:?]
    03.06 17:34:55 [Server] [Informatie] at me.picknchew.cratekeys.g.onCommand(g.java) ~[?:?]
    03.06 17:34:55 [Server] [Informatie] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot1.8.7.jar:git-Spigot-6d16e64-09ddd9b]
    03.06 17:34:55 [Server] [Informatie] ... 15 more
     
    Hopefully you guys can see the problem!

    ~Wouter
     
  2. It's caused by a null pointer exception, this error occurs when the plugin tries to reference a null value.

    Make sure you're using the correct version of the plugin depending on what version of minecraft you're using