galaipa / SuperBuildBattle2

Recoded version of SuperBuildBattle
7 stars 8 forks source link

error in console trying to change time ingame #43

Closed cicatrice74 closed 8 years ago

cicatrice74 commented 8 years ago

I have this error when trying to change time in-game with the gui icon

[10:23:29] [Server thread/ERROR]: Could not pass event InventoryClickEvent to SuperBuildBattle v10.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1852) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_91] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_91] at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] at java.lang.Thread.run(Unknown Source) [?:1.8.0_91] Caused by: java.lang.NullPointerException at io.github.galaipa.sbb.ArenaPlayer.setTime(ArenaPlayer.java:141) ~[?:?] at io.github.galaipa.sbb.InGameGui.userGuiUse(InGameGui.java:218) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigotmc-1.9.2-R0.1.jar:git-Spigot-e000104-4cb3258] ... 15 more

i'm on latest spigot latest super build battle essentialsx worldguard latest dev worldedit latest dev

galaipa commented 8 years ago

Thank You! I have found and fix a big bug related to the time / weather!