The bug
Some commands have aliases, such as /xp
, which is an alias for /experience
. An error is normally shown when running a command that doesn't include all the required parameters. However, when running a command through an alias, those error messages don't show, providing the user with no feedback about what they have done wrong.
Steps to reproduce
Run the following command:
/xp query @s
Expected behaviour
A red "unknown or incomplete command" error would be shown
Observed behaviour
No error is produced
Screenshots
[media]
Notes
A fix for the issue has been provided by @unknown, who has submitted it as a PR to the Mojang/brigadier repository.
Related issues
discovered while testing
is duplicated by
relates to
Attachments
Comments


Discovered while testing MC-239808
This report is a bit misleading, those arguments are indeed required.
The issue is with redirecting commands. /xp query @s
shows no error, but /experience query @s
shows the correct error. Likewise with /tell @s
compared to /msg @s
.

Thank you @tryashtar for the additional information - I didn't think to check the "actual" command. I'll update the report accordingly.

I found this bug too and I fixed it. I want someone to review my PR at [github](Fix wrong redirect behavior by zly2006 · Pull Request #124 · Mojang/brigadier (github.com))
Well, hope someone can see this comment/my PR

Can confirm in 1.19.4-pre1.
And this affects not only command aliases, but also execute command. This can be reproduced with the following commands:
/execute as @s at
/execute run experience