Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException on server shutdown #214

NiklasEi opened this issue Jun 6, 2019 · 0 comments


None yet
1 participant
Copy link

commented Jun 6, 2019

The current bukkit module causes a ConcurrentModificationException when disabling a plugin that uses acf. I fixed it in my plugin by overwriting unregisterCommands(), but thought I might also provide a quick fix here.

> stop
[01:24:51 INFO]: Stopping the server
[01:24:51 INFO]: Stopping server
[01:24:51 INFO]: [GameBox] Disabling GameBox v2.2.5
[01:24:51 ERROR]: Could not pass event PluginDisableEvent to GameBox v2.2.5
java.util.ConcurrentModificationException: null
	at java.util.HashMap$HashIterator.nextNode( ~[?:1.8.0_212]
	at java.util.HashMap$ ~[?:1.8.0_212]
	at java.util.HashMap$ ~[?:1.8.0_212]
	at me.nikl.gamebox.common.acf.BukkitCommandManager.unregisterCommands( ~[?:?]
	at me.nikl.gamebox.common.acf.ACFBukkitListener.onPluginDisable( ~[?:?]
	at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute( ~[patched_1.13.2.jar:git-Paper-629]
	at co.aikar.timings.TimedEventExecutor.execute( ~[patched_1.13.2.jar:git-Paper-629]
	at org.bukkit.plugin.RegisteredListener.callEvent( ~[patched_1.13.2.jar:git-Paper-629]
	at org.bukkit.plugin.SimplePluginManager.callEvent( ~[patched_1.13.2.jar:git-Paper-629]
	at ~[patched_1.13.2.jar:git-Paper-629]
	at org.bukkit.plugin.SimplePluginManager.disablePlugin( ~[patched_1.13.2.jar:git-Paper-629]
	at org.bukkit.plugin.SimplePluginManager.disablePlugins( ~[patched_1.13.2.jar:git-Paper-629]
	at org.bukkit.plugin.SimplePluginManager.disablePlugins( ~[patched_1.13.2.jar:git-Paper-629]
	at org.bukkit.craftbukkit.v1_13_R2.CraftServer.disablePlugins( ~[patched_1.13.2.jar:git-Paper-629]
	at net.minecraft.server.v1_13_R2.MinecraftServer.stop( ~[patched_1.13.2.jar:git-Paper-629]
	at ~[patched_1.13.2.jar:git-Paper-629]
	at [?:1.8.0_212]

NiklasEi added a commit to NiklasEi/commands that referenced this issue Jun 6, 2019

chickeneer added a commit that referenced this issue Jun 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.