cadenkriese / Thirst

Thirst plugin for Spigot. Adds a thirst mechanic into minecraft!
GNU General Public License v3.0
1 stars 2 forks source link

Could not pass event UpdateEvent to Thirst v1.4.2 #2

Closed FCRev closed 7 years ago

FCRev commented 7 years ago

Hello again, sorry to bother but now I've got another error with the new version. It's not spamming console every second but it still shows up.

Could not pass event UpdateEvent to Thirst v1.4.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:308) ~[spigot.jar:git-Spigot-455072c-43ab266] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-455072c-43ab266] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-455072c-43ab266] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-455072c-43ab266] at me.gamerzking.core.updater.Updater.run(Updater.java:27) [Thirst-1.4.2.jar:?] at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:71) [spigot.jar:git-Spigot-455072c-43ab266] at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-455072c-43ab266] at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:723) [spigot.jar:git-Spigot-455072c-43ab266] at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot.jar:git-Spigot-455072c-43ab266] at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668) [spigot.jar:git-Spigot-455072c-43ab266] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567) [spigot.jar:git-Spigot-455072c-43ab266] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91] Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429) ~[?:1.8.0_91] at java.util.HashMap$KeyIterator.next(HashMap.java:1453) ~[?:1.8.0_91] at com.gamerking195.dev.thirst.listeners.UpdateListener.onUpdate(UpdateListener.java:38) ~[?:?] at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304) ~[spigot.jar:git-Spigot-455072c-43ab266]

Seems to pop up whenever a player leaves the server again, but again, it's only once every time a player leaves, not every second. Thanks again!

cadenkriese commented 7 years ago

Alright so I think I found the bug and fixed it, I logged in and logged out like 10 times on my server without any errors, but, I thought I did that last update too, so here's a download link to the beta jar go ahead and test it as much as you'd like (don't take to long as I wanna fix this asap).

FCRev commented 7 years ago

Alright, got it in and it seemed to have fixed the issue once again. Not totally sure why it kept on spamming errors on my side then. Thanks again for the fix!

cadenkriese commented 7 years ago

Alright cool, posting update now.