mojira.dev
MC-204768

/execute advancement command throws error in log if it fails

When trying to run an execute command which runs an advancement grant or revoke, it throws a error involving brigadier if the command would fail.

execute ... run advancement ... somethingnonexistant
execute ... run advancement ... only somethingnonexistant anycriterion
execute ... run advancement ... somethingnonexistant
execute ... run advancement ... only somethingnonexistant anycriterion

This applies to all execute chains (with the sole-exception of "execute run") and both grant and revoke.

execute as @s run advancement grant @s only somethingnonexistant anycriterion
execute as @s run advancement grant @s only somethingnonexistant anycriterion

Linked issues

Attachments

Comments 4

No it isn't; this report is solely about the brigadier error (that only happens with non-valid advancements in the command), that's about something else: it not storing results when the command fails.

@Dhranios Sorry for my mistake.

this bug only affects auto completion, and doesn't affect execution

Um... again, no. The error gets printed when running the command without a valid advancement.
The reason it isn't a duplicate is because they're not addressing the sane issue; the fix for that report can also be "if error is thrown, return 0", not fixing this.

user-f2760

(Unassigned)

Confirmed

Platform

Normal

Commands

1.16.4, 21w03a, 1.16.5, 1.17.1, 1.18.1, ..., 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b

Retrieved