-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexplanable command completion conflict with aliases in API-8 #3349
Comments
Provide code to reproduce this. I think I know what's going on but having a minimal test case that I can just copy/paste will help. |
Unfortunately I do not manage to extract a standard example from my command registration system so I'm not able to identify the real issue of this problem. But this is a bug that is persistent. Each time I run the server the completion fails for this specific alias. I'll try to find a clear reproduction of this bug with standard Sponge parameters |
…dier Rather, this looks like an intentional decision which actually causes huge problems with the client. A lot of our changes are designed to work around Brig but we can't affect the vanilla client. The problem is that the equality contract for nodes don't account for redirects, so if you have two literal nodes with the same name but two different redirects (or none at all), Brig (incorrectly) assumes they are the same and the client just merges them, so the client completion for one command may appear on another. Redirects would be better simply to reduce the tree size, so if/when fixed on the client we should revert this. This may solve #3349 and is also the same issue with command flags, but because of the way flags work we need the redirects and therefore needs a better workaround (or for Mojang to fix this) Also fixes compile error introdueced by 5e202d4 as best as I can.
Try the latest commit - I think this is the problem. |
Indeed, it's now working correctly! |
Hey,
I have this command in my plugin :
Move:
/cm move [<entities-moved>] [<world>] [<x> <y> <z>] [<rx> <ry> <rz>]
Move has two aliases :
mv
andtp
For a reason I can't explain, I do not have the same completion when using
/cm move
or/cm tp
:This is the same command so the completion should be the same.
Morever, when I start to complete the tp command I have parsing error :
Whereas when I press enter, the command runs normally.
Weirdest thing is that this bug happens only for the
tp
alias,mv
works perfectly fineThanks for reading this issue
The text was updated successfully, but these errors were encountered: