Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Add support for @p, @a and @r selectors. #318

Merged
merged 1 commit into from
Aug 21, 2016
Merged

Conversation

dualspiral
Copy link
Member

@dualspiral dualspiral commented Aug 21, 2016

Selectors require the nucleus.<command-name>.selector permission - which will be different for each command.

The following selectors, some of which are Nucleus specific, are available:

  • @p - nearest player to command executor, not including command executor
  • @p[world,x,y,z] - nearest player to co-ordinates, including command executor
  • @r - random player, not including executor
  • @r[world] - random player on specified world, not including executor
  • @a - all players
  • @a[world] - all players on world.

So far, the following commands have selectors. Only /smite has access to the @a family of selectors:

smite
msg
burn
hat
tppos
fly
spawnmob
tpa
tpahere

Support for /tp will be coming up soon for @p only.

Other commands can be added on request.

Fixes #317

@dualspiral dualspiral self-assigned this Aug 21, 2016
@dualspiral dualspiral force-pushed the feature/selectors branch 2 times, most recently from 27b91da to 57a26e5 Compare August 21, 2016 14:55
Selectors require the "nucleus.<command-name>.selector" permission - which will be different for each command.

The /lightning command was updated to support the @A selector.

Fixes #317
@dualspiral dualspiral merged commit 08307c1 into master Aug 21, 2016
@dualspiral dualspiral deleted the feature/selectors branch August 21, 2016 15:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant