-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Tanguygab edited this page Aug 2, 2020
·
38 revisions
You can download the expansion on PlaceholderAPI's eCloud at https://api.extendedclip.com/expansions/playerlist/
%playerlist_<type>,<subtype>,<yes/no>,<output>,<subtype_value>%
- all - Matches all players
- online - Matches online players
- offline - Matches offline players
- normal - Matches all players - Doesn't require a <subtype_value>
- perm - Matches all players that match the permission defined by <subtype_value> - Supports multiple separated by + Ex: perm1+perm2 (they only need one of them)
- world - Matches all player in the world defined by <subtype_value> - Supports multiple separated by + (Ex: world1+world2)
- nearby - Matches all players in a certain radius in blocks defined by <subtype_value>
- yes - Will get the list of players counting you in it
- no - Will get the list of players without counting you in it
- list - Returns a list of players separated by
,
. You can also change the separator withlist-<separator>
. Since , is used to separate the differents parts of the placeholder, use\.
instead if you want to display a,
. - amount - Returns amount of players matched
- - Returns the player at the specified index
- %playerlist_all,normal,yes,list% - Tanguygab, cj89898, funnycube, clip, Frcsty, GabyTM, ItsMeGlare
- %playerlist_all,normal,yes,0% - Tanguygab
- %playerlist_online,perm,yes,amount,staff.admin% - 3
- %playerlist_online,world,yes,2,buildingworld+spawnworld% - cj89898, funnycube
- %playerlist_online,nearby,yes,list,20% - Tanguygab, cj89898, clip
- %playerlist_online,nearby,no,list--,20% - cj89898-clip
Note: You can also use PlaceholderAPI placeholders in the different parts of the placeholder with {placeholder} or [placeholder]. For example: %playerlist_online,world,{player_is_op},[math_{vault_eco_balance}[precision:0]],{player_world}%