mojira.dev
MC-253460

/advancement inside of /execute can give "Failed to handle packet" error

Typing a command like

/execute as @s run advancement grant @s only minecraft:adventure/adventuring_time

into chat and pressing space gives the following error in the game output and log:

Failed to handle packet xf@32bc4e94, suppressing error
java.lang.IllegalArgumentException: No such argument 'advancement' exists on this command
	at com.mojang.brigadier.context.CommandContext.getArgument(CommandContext.java:85)
	at eq.e(SourceFile:75)
	at eq.a(SourceFile:37)
	at abj.b(SourceFile:49)
	at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:598)
	at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:580)
	at agh.a(SourceFile:513)
	at xf.a(SourceFile:29)
	at xf.a(SourceFile:7)
	at sq.a(SourceFile:22)
	at aba.run(SourceFile:18)
	at ayd.d(SourceFile:157)
	at ayh.d(SourceFile:23)
	at net.minecraft.server.MinecraftServer.b(SourceFile:778)
	at net.minecraft.server.MinecraftServer.d(SourceFile:162)
	at ayd.x(SourceFile:131)
	at net.minecraft.server.MinecraftServer.bh(SourceFile:760)
	at net.minecraft.server.MinecraftServer.x(SourceFile:754)
	at ayd.c(SourceFile:140)
	at net.minecraft.server.MinecraftServer.w(SourceFile:739)
	at net.minecraft.server.MinecraftServer.v(SourceFile:671)
	at net.minecraft.server.MinecraftServer.a(SourceFile:260)
	at java.base/java.lang.Thread.run(Thread.java:833)

This appears to only happen for /advancement, and only when using 'only', along with 'grant' or 'revoke'.

 

Linked issues

Attachments

Comments 2

Thank you for your report!
We're tracking this issue in MC-204768, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

mattp12

(Unassigned)

Unconfirmed

1.19, 1.19.1 Pre-release 1

Retrieved