-
Notifications
You must be signed in to change notification settings - Fork 2
Description
The plugin before the error works perfectly, after the error everything starts to fail.
When starting the creation of the arena everything works fine until it's time to save. I place the lobby, the spawn drawer, the board positions, the save interface opens, I modify the number of players, I click enable, and when I click "Save", it throws an error on the console, this:
[21:17:35] [Server thread/INFO]: Revenant issued server command: /di
[21:17:36] [Server thread/INFO]: Revenant issued server command: /DrawIt SetMainLobby
[21:17:41] [Server thread/INFO]: Revenant issued server command: /DrawIt Setup drawit001
[21:17:52] [Server thread/INFO]: Revenant issued server command: /DrawIt SetLobby
[21:17:56] [Server thread/INFO]: Revenant issued server command: /gmsp
[21:18:01] [Server thread/INFO]: Revenant issued server command: /gmc
[21:18:08] [Server thread/INFO]: Revenant issued server command: /DrawIt SetDrawer
[21:18:14] [Server thread/INFO]: Revenant issued server command: /DrawIt SetBoard Pos1
[21:18:25] [Server thread/INFO]: Revenant issued server command: /DrawIt SetBoard Pos2
[21:18:48] [Server thread/INFO]: Revenant issued server command: /DrawIt Save
[21:19:02] [Server thread/ERROR]: Could not pass event InventoryClickEvent to DrawIt v1.0.1
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1891) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_241]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_241]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
Caused by: java.lang.NumberFormatException: For input string: "0,5"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) ~[?:1.8.0_241]
at sun.misc.FloatingDecimal.parseDouble(Unknown Source) ~[?:1.8.0_241]
at java.lang.Double.parseDouble(Unknown Source) ~[?:1.8.0_241]
at club.mher.drawit.game.Game.readLocation(Game.java:189) ~[?:?]
at club.mher.drawit.game.Game.<init>(Game.java:59) ~[?:?]
at club.mher.drawit.DrawIt.registerGame(DrawIt.java:193) ~[?:?]
at club.mher.drawit.game.SetupGame.save(SetupGame.java:160) ~[?:?]
at club.mher.drawit.menu.menus.SaveGameMenu.handleMenu(SaveGameMenu.java:85) ~[?:?]
at club.mher.drawit.listeners.SystemListener.onMenuClick(SystemListener.java:24) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_241]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
... 15 more
[21:19:23] [Server thread/INFO]: Revenant issued server command: /DrawIt Save
I checked the error and focused on the line Caused by: java.lang.NumberFormatException: For input string: "0,5" and the only thing with a value of 0,5 is the coordinates of the arena lobby and the point from the drawer, so I reinstalled everything again and tried to set the sand to a point without a decimal, but the same thing happened.
As I said at the beginning, when this InventoryClickEvent error appears, everything is unconfigured and starts to give an error too, here is a log of when I enter again after the save error.
[13:50:20] [Server thread/ERROR]: Could not pass event PlayerJoinEvent to DrawIt v1.0.1
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerList.onPlayerJoin(PlayerList.java:346) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.PlayerList.a(PlayerList.java:166) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.LoginListener.b(LoginListener.java:159) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.LoginListener.e(LoginListener.java:57) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.NetworkManager.a(NetworkManager.java:233) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.ServerConnection.c(ServerConnection.java:140) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:845) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
Caused by: java.lang.IllegalArgumentException: location
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer.teleport(CraftPlayer.java:490) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at org.bukkit.craftbukkit.v1_12_R1.entity.CraftEntity.teleport(CraftEntity.java:271) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
at club.mher.drawit.DrawIt.teleportToLobby(DrawIt.java:335) ~[?:?]
at club.mher.drawit.DrawIt.activateLobbySettings(DrawIt.java:229) ~[?:?]
at club.mher.drawit.listeners.JoinQuitListener.onJoin(JoinQuitListener.java:18) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_241]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]
... 14 more