Skip to the content second.

Player Selectors

Selectors are used to specify to which clients an action should be executed. The selector format is inspired and partially compatible with the Mincecraft selection format. Usernames are also acceptable, but the main format goes as follows. Selectors start with a group of players, supported groups are:

You can just leave it there but you can also filter for some attributes like location, radius and worldguard region.

For example, to start a sound for all players in a radius of 10 blocks, you could use


You can also filter players by the worldguard region they are in, for example to select everyone in the region spawn


When executed by a player, you can use server to select all players in a server called lobby


And last but not least, you can also select player (near) a specific location, for example, lets select everyone near the block at X:10, Y:12, Z:15 @a[x=10,y=12,z=15,r=5]