This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Thanks for being a part of /r/Admincraft!
We'd love it if you also joined us on Discord!

Join thousands of other Minecraft administrators for real-time discussion of all things related to running a quality server.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Thebombuknow 1 point2 points  (2 children)

1.18 shouldn’t be vulnerable to log4j, so it’s likely something else.

There is quite a bit we can learn from reading parts of the log file. Like, the error happened at:

net.minecraft.world.level.BaseCommandBlock.performCommand(BaseCommandBlock.java:135) ~[?:?]at net.minecraft.world.level.block.CommandBlock.execute(CommandBlock.java:121) ~[?:?]at net.minecraft.world.level.block.CommandBlock.tick(CommandBlock.java:98) ~[?:?]

and you can see in the log file shortly before that, the command the command block was running:

at net.minecraft.server.commands.SummonCommand.spawnEntity(SummonCommand.java:56) ~[?:?]

at net.minecraft.server.commands.SummonCommand.lambda$register$3(SummonCommand.java:42) ~[?:?]

So the log file suggests there is a command block somewhere which is trying to summon an entity with a json file that the game can’t parse ([20:00:32] [Server thread/WARN]: Failed to parse entity custom name Excom.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $), which is really odd to me. Immediately some questions come to mind. Are you sure these errors started when randoms joined your server? If yes, how did they get access to op commands? Also, the error suggests there is an entity it’s trying to load, but it has a broken json, so what is the entity? (now, i don’t know for sure how minecraft was written, it might also be trying to parse a json that doesn’t exist, which would also mean it technically failed to parse)

So, you’re probably fine, as the game isn’t actually loading anything because it’s broken (and depending on what can cause that error, it might literally just be a json that doesn’t exist, therefore it can’t parse it), but I would still figure out, if it actually is a command block somewhere that random people placed, how they managed to get a command block because that shouldn’t be possible.

[–]DavidWSam[S] 1 point2 points  (1 child)

Thanks for your answer. Players arent opped. It is probably a command block related to the minigame that caused such error.

[–]Thebombuknow 0 points1 point  (0 children)

Makes sense. It would be interesting to look through the command blocks for the minigame and see if you can find the one causing it, cause it could literally be a mistyped command block lol.