From 5427bd5ca47ad4e2abc08cd1b18f5ebffea92cb6 Mon Sep 17 00:00:00 2001 From: cj89898 Date: Wed, 1 Jul 2020 14:04:13 -0500 Subject: [PATCH] Updated Community Scripts (markdown) --- Community-Scripts.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Community-Scripts.md b/Community-Scripts.md index d33143f..9d921d3 100644 --- a/Community-Scripts.md +++ b/Community-Scripts.md @@ -1121,9 +1121,10 @@ number_in_group_of_worlds: * `%javascript_listplayers_all,%` - Matches all players * `%javascript_listplayers_perm,+,%` - Matches all players with the specified permission(s) * `%javascript_listplayers_world,+,%` - Matches all players in specified world(s) +* `%javascript_listplayers_nearby,,%` - Matches all players in a nearby radius **Types:** -* `list` - Returns a list of players separated by `, `
+* `list` - Returns a list of players separated by `, ` * `amount` - Returns amount of players matched * `` - Returns the player at the specified index @@ -1131,6 +1132,9 @@ number_in_group_of_worlds: * `%javascript_listplayers_all,list%` - `Tanguygab, cj89898, funnycube, clip` * `%javascript_listplayers_perm,staff.admin,amount%` - `2` * `%javascript_listplayers_world,buildingworld+spawnworld,2%` - `funnycube` +* `%javascript_listplayers_nearby,5,2%` - `Tanguygab, clip` + +*You can also use `[placeholder]` for papi placeholders in addition to the javascript `{placeholder}`* **Javascript Code**