mojira.dev
MC-256419

Incomplete commands run through aliases don't produce errors

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

Related issues

Attachments

Comments

migrated
[media][media]
MMK21

Discovered while testing MC-239808

tryashtar

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.

MMK21

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

migrated

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

Former user

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

migrated

That'd be MC-165773.

Relates to MC-165773.

MMK21

(Unassigned)

Confirmed

Platform

Low

Commands

1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 22w46a, 1.19.3, 23w03a, 23w05a

23w14a

Retrieved