What steps will reproduce the problem?1. After clean install on 1.7 start server2. Lotto works great until first draw3. After first draw it will create a winner each time a player issues the /lottery command. It will pay out the balance of the first draw. In this case it drew 130 times with a pot of $44,000. Lotterywinners also weren't all recorded.
What is the expected output? What do you see instead?
What version of bukkit and lottery plugin are you using?Spigot 1215lottery v0.9.4
Are you using any economy plugins? If so, which?hyperconomy/vault
Do you have an error log of what happened?
[12:13:18] [Server thread/INFO]: that1bigkid issued server command: /lottery[12:13:18] [Server thread/WARN]: [Lottery] Task #76619 for Lottery v0.9.4 generated an exceptionjava.lang.NullPointerException at net.erbros.lottery.LotteryGame.getWinner(LotteryGame.java:411) ~[?:?] at net.erbros.lottery.Lottery.lotteryDraw(Lottery.java:164) ~[?:?] at net.erbros.lottery.LotteryDraw$1.run(LotteryDraw.java:29) ~[?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:58) ~[spigot.jar:git-Spigot-1190] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [spigot.jar:git-Spigot-1190] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:577) [spigot.jar:git-Spigot-1190] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:259) [spigot.jar:git-Spigot-1190] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:534) [spigot.jar:git-Spigot-1190] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:446) [spigot.jar:git-Spigot-1190] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot.jar:git-Spigot-1190]
Please provide any additional information below.
Can you paste your Lottery config file here, thank you :)
This is likely due to HyperConomy, a economy plugin not directly supported by Vault. Do you have any other economy plugin installed?
Right now just hyperconomy
This is because you supplied an invalid tax target, the hypereconomy is bombing because it can't find an account called "1".
Added a check to prevent this in the future.
I was thinking about that, but I was of the impression that the hasAccount call would create the account if it didn't find one. Clearly I'm not into the code anymore ;)
To post a comment, please
or register a new account.