I have a script that runs when people log in. It attempts to clear player inventory of contraband blocks that users might somehow obtain.
Usually, it runs without error, but I'm seeing intermittent errors in the console like the following, that are probably due to a race condition:
[19:57:34] [RCON Client #744/ERROR]: Couldn't process command: 'clear @a[m=0] minecraft:sponge'
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819) ~[?:1.7.0_07]
at java.util.ArrayList$Itr.next(ArrayList.java:791) ~[?:1.7.0_07]
at aht.a(SourceFile:2208) ~[minecraft_server.jar:?]
at ab.b(SourceFile:283) ~[minecraft_server.jar:?]
at x.a(SourceFile:46) [minecraft_server.jar:?]
at net.minecraft.server.MinecraftServer.g(SourceFile:709) [minecraft_server.jar:?]
at ov.run(SourceFile:80) [minecraft_server.jar:?]
at java.lang.Thread.run(Thread.java:722) [?:1.7.0_07]
Linked issues
relates to 1
Comments 4
Related to MC-72390
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.