Revxrsal / Lamp

A powerful, extendable, flexible yet simple to use commands annotation framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

able to specify string as quoted, greedy, single?

portlek opened this issue · comments

able to specify string as quoted, greedy, single?
commented

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.

ye but i want to make something like /test xxx "quoutedParam" "quoutedParam". i want to able to mark string quoted whereever i want. i guess i'll change the default String resolver.

i hope this is the right way to do it:
image