Open AzaleeX opened 2 months ago
This has been proposed many times before, and I say the same thing every time: A proper command argument parser & validation system needs to be implemented on the server side. There are several things that need to be implemented before it makes sense to bother with this.
Without automatic argument parsing, this requires plugin devs to do all of the same work but for only a small fraction of the benefit (not to mention everyone who's tried to add this seems to want to couple the protocol to the command API).
See discussions on related PRs #3871 #4578 #2345 and probably many more I couldn't find in search.
For this to work, PocketMine would need to automatically support command enumerations. I understand this might break backward compatibility, but since this feature is already part of vanilla Minecraft, it logically should be implemented in PocketMine-MP. This would allow for suggestions to appear when typing a command and could also make it interesting to enable the creation of custom command enumerations.
This means that within the Command class, there would be a preparation of the required options. One could consider adding a class or concept such as
CommandParamOption
or evenCommandParamType
.might be interesting for PM-6 ?