EngineHub / Piston

A generic command system, with tie-ins to many Minecraft platforms such as Bukkit, Forge, and Sponge.
GNU General Public License v3.0
17 stars 3 forks source link

Support for multi argument parameters #26

Open DarkArc opened 4 years ago

DarkArc commented 4 years ago

Allow ArgumentConverter to specify a range of arguments for instance, for a coordinate parser, you could specify that 1 - 3 arguments should be tried. The parser can then trial parse 3 arguments, and walk down until it gets a match, or it fails.

octylFractal commented 4 years ago

Personally I am not willing to make this happen soon, but I am not against it. If someone PR's it, then I will review and merge it, but I believe it will require a significant rewrite of the current parser.