From d2bce7bbb34070c44bd28aa99a1fb795dd3ad2aa Mon Sep 17 00:00:00 2001 From: Tanguy <45695833+Tanguygab@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:32:57 +0200 Subject: [PATCH] Updated PlayerList expansion's description --- Placeholders.md | 43 ++++--------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/Placeholders.md b/Placeholders.md index 4c00d10..9807fec 100644 --- a/Placeholders.md +++ b/Placeholders.md @@ -1050,47 +1050,12 @@ A majority of these Expansions are maintained by the PlaceholderAPI team and can - ### PlayerList > /papi ecloud download playerlist - - Returns the player list matching the specified syntax - + More info about this expansion can be found on the [GitHub-Repository](https://github.com/Tanguygab/PlayerList-PlaceholderAPI-Expansion/wiki). + + Create a list in PAPI's config and retrieve it through placeholders! ``` - %playerlist_,,,,% + %playerlist__% ``` - - **Type:** - - `all` - Matches all players - - `online` - Matches online players - - `offline` - Matches offline players - - **Subtypes:** - - `normal` - Matches all players. Requires no `` - - `perm` - Matches all players that match the permission defined by ``. Supports multiple permissions separated by `+` (`perm.1+perm.2`) - - `world` - Matches all players in the world defined by ``. Supports multiple worlds separated by `+` (`world+world_nether`) - - `nearby` - Matches all players in a certain radius defined by `` - - **Include:** - - `yes` - Include the player - - `no` - Exclude the player - - **Output:** - - `list` - Returns a list of players separated by `, `. You can also change the separator with `list-`.* - - `amount` - Returns amount of players matched - - `` - Returns the player at the specified index - - **Examples:** - ``` - %playerlist_all,normal,yes,list% # Tanguygab, cj89898, funnycube, clip, Frcsty, GabyTM, ItsMeGlare - %playerlist_online,perm,yes,amount,staff.admin% # 2 - %playerlist_online,world,yes,2,buildingworld+spawnworld%` # cj89898, funnycube - %playerlist_online,nearby,yes,list,5% # Tanguygab, cj89898, clip - %playerlist_online,nearby,no,list,5% # Tanguygab, clip - %playerlist_online,nearby,no,list--,20% # Tanguygab-clip-Terfs - ``` - - *You can also use `[placeholder]` for papi placeholders in addition to the javascript `{placeholder}`* - - *Note: `Offline` and `All` only support the `Normal` subtype.* - **Since `,` is used to separate the different parts of the placeholder, use `\.` instead if you want to display a `,`.** ----