JorelAli / CommandAPI

A Bukkit/Spigot API for the command UI introduced in Minecraft 1.13

Home Page:https://commandapi.jorel.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TextArgument backed ListArgument

Minenash opened this issue · comments

commented

Description

Currently, the ListArgument uses GreedyStringArgument as the backbone, and while it has the advantage of not needing quotes for anything not alphanumeric_, it limits commands to a maximum of 1 list arguments.

It would be nice to also have a TextArgument backed version, that would allow multiple lists, with the cost of quotes, unless they use _ as the delimiter.

Expected code

The simplest would probably be changing the .build() to .buildGreedy() an .buildText(), with .build() being an alias to the greedy one to keep compatibility

Extra details

No response

Implemented for 8.6.0's release.

Implemented in release 8.6.0.