CommandTree#override not working on 1.21.5 #640
Labels
bug
Something isn't working
implemented for next release
This has been implemented in the current dev build for the next public release
CommandAPI version
10.0.0
Minecraft version
1.21.5 (Paper)
Are you shading the CommandAPI?
Yes
What I did
I create a gamerule command tree, with subcommands for worlds.
Its a bit of a bigger command than this, but here is the registration part:
(here is more of the code if you think it would be helpful https://github.com/ShaneBeee/CorePlugin/blob/master/src/main/java/com/shanebeestudios/core/plugin/command/GameruleCommand.java)
What actually happened
The command does not appear to override the vanilla Minecraft

/gamerule
commandIn 1.21.4 it works as expected (this was CommandAPI 9.7.0):
In 1.21.5 it does not appear to override the vanilla command (with CommandAPI 10.0.0):

It appears to merge the vanilla and custom commands together:

As you can see here, if I start typing out "w" it offers both my worlds and the vanilla game rules.
What should have happened
This should, as previous versions, completely wipe out the vanilla command.
Server logs and CommandAPI config
Nothing really to add here. I have shaded CommandAPI into my project.
Other
No response
The text was updated successfully, but these errors were encountered: