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

Suggestion: Make varargs parser that parses a certain object to a collection of it #140

Open
JustNOTRO opened this issue Aug 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@JustNOTRO
Copy link
Collaborator

JustNOTRO commented Aug 4, 2024

Example 1: /heal JustNOTRO Voigon OfirTIM
it will return all the players mentioned as a List or a Set.
Let's say that Voigon is not online, then it will take only JustNOTRO & OfirTIm into the collection,
Optional: Every player mentioned that is not online/exit it justs skips him

@ikfir
Copy link
Member

ikfir commented Aug 10, 2024

How should the syntax look

  1. <list<player>>
  2. <vararg-player> Note no the best because we using some parser with -

If you got more ideas for syntax please add them here ty

@ikfir ikfir added the enhancement New feature or request label Aug 10, 2024
@JustNOTRO
Copy link
Collaborator Author

JustNOTRO commented Aug 10, 2024

Doing <list> is not generic enough, because what if we want a set and not a list?
You should return a collection instead and then we would have more choice.

More than that, the <vararg-player> seems a better choice in my opinion.

@ikfir
Copy link
Member

ikfir commented Aug 12, 2024

<player...>
<player[]>

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

2 participants