Skip to content

Missing @AListArgument as the annotation equivalent of the ListArgument #607

@jvdoorn

Description

@jvdoorn

Description

I have been unable to find an implementation of the @AListArgument as the annotation equivalent of the ListArgument. I searched both the documentation and the (closed) issues but found no reference as to why this is missing.

Did I miss something? Is there a technical limitation as to why this annotation does not exist? And if it is not possible to implement, are there alternative ways to reach a similar result?

Expected code

public class AnnotationBasedCommand {
    @Default
    public static void execute(Player sender, @AListArgument(suggestions={"a", "b", "c"}, delimiter=" ", allowDuplicates=False) List<String> list) {
        // Do stuff...
    }
}

Extra details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions