Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jvdoorn opened this issue Oct 21, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@jvdoorn
Copy link

jvdoorn commented Oct 21, 2024

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

@jvdoorn jvdoorn added the enhancement New feature or request label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant