milkwalk / XPBoost

Updated version of XPBoost
GNU General Public License v3.0
13 stars 13 forks source link

Global XPboost reported Null. #17

Closed ArcticRaven closed 4 years ago

ArcticRaven commented 4 years ago

I do need to preface this with my server is running Paper 1.15.1 build 31. So of course I will probably hear back that the plugin isnt supported for that version.

Everything else on the plugin works except for /xpboost global

Here is the error:


05.01 01:48:57 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'xpboost' in plugin XPBoost v3.3.0
05.01 01:48:57 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:740) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1820) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1628) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.aZ(MinecraftServer.java:1037) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1030) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1014) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:937) ~[patched_1.15.1.jar:git-Paper-31]
05.01 01:48:57 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
05.01 01:48:57 [Server] INFO Caused by: java.lang.NumberFormatException: For input string: "1hrexp"
05.01 01:48:57 [Server] INFO at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) ~[?:1.8.0_222]
05.01 01:48:57 [Server] INFO at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) ~[?:1.8.0_222]
05.01 01:48:57 [Server] INFO at java.lang.Double.parseDouble(Double.java:538) ~[?:1.8.0_222]
05.01 01:48:57 [Server] INFO at cz.dubcat.xpboost.commands.GlobalCommand.onCommand(GlobalCommand.java:31) ~[?:?]
05.01 01:48:57 [Server] INFO at cz.dubcat.xpboost.commands.CommandHandler.onCommand(CommandHandler.java:38) ~[?:?]
05.01 01:48:57 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.1.jar:git-Paper-31]```
milkwalk commented 4 years ago

Hi @Foxstone1, it seems that u are passing a wrong argument to the command /xpb global it expects a number to be passed as a second argument but u are passing a 1hrexp value, which results in an error.