able to specify string as quoted, greedy, single?
portlek opened this issue · comments
able to specify string as quoted, greedy, single?
Strings are quoted by default. If it comes at the end of the command (i.e. the last parameter), it'll become greedy. You can annotate it anywhere with @Single
to mark it as single.
It'll make no sense to mark a string as greedy when it's in the middle of the command, as following parameters will not get a place.
You can also register a custom ArgumentTypeResolver in BukkitBrigadier.