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

Command target selectors #6519

Open
3 tasks
dktapps opened this issue Nov 17, 2024 · 0 comments
Open
3 tasks

Command target selectors #6519

dktapps opened this issue Nov 17, 2024 · 0 comments
Labels
Category: UI Related to the user interface (e.g. commands, terminal output) Type: Enhancement Contributes features or other improvements to PocketMine-MP

Comments

@dktapps
Copy link
Member

dktapps commented Nov 17, 2024

Description

There are 3 tiers of this task, ranging from easy to hard:

  • Implement basic (without arguments) @p (nearest player), @r (random player) and @s (self). These should be fairly easy as they each only support 1 target.
  • Implement basic (without arguments) @a (all players) and @e (all entities). Many commands would have to be refactored to support multiple targets for these.
  • Implement selector arguments. There are a ton of them I won't document here, but this would be a whole exercise of parsing in itself.

Open questions

I'm not sure what the default behaviour should be where multi-world is concerned. Should selectors target all worlds? Only the default world unless world=somethingElse is provided? Please discuss.

Justification

This is a needed feature that's gone ignored for a long time.

Alternative methods

@dktapps dktapps added Type: Enhancement Contributes features or other improvements to PocketMine-MP Category: UI Related to the user interface (e.g. commands, terminal output) labels Nov 17, 2024
@dktapps dktapps moved this to Todo in Commands rework Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: UI Related to the user interface (e.g. commands, terminal output) Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
Status: Todo
Development

No branches or pull requests

1 participant