summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorbigfoot547 <bigfoot547@users.noreply.github.com>2017-03-22 15:13:03 -0500
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-22 21:13:03 +0100
commit9efc5da0fb7d276deff55db6e4eb89d24ca72b5d (patch)
tree5f6c3d614d2f2780867c3407c7a94c0f26a29b41 /doc
parentc4b98deb616fbe204c503d678fb920baa33cbede (diff)
downloadminetest-9efc5da0fb7d276deff55db6e4eb89d24ca72b5d.tar.gz
minetest-9efc5da0fb7d276deff55db6e4eb89d24ca72b5d.tar.bz2
minetest-9efc5da0fb7d276deff55db6e4eb89d24ca72b5d.zip
[CSM] Add function to get player names in range (#5435)
* [CSM] Add function to get currently connected player names
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md
index 5fba66c69..ced1a40a4 100644
--- a/doc/client_lua_api.md
+++ b/doc/client_lua_api.md
@@ -737,6 +737,10 @@ Call these functions only at load time!
* `minetest.get_wielded_item()`
* Returns the itemstack the local player is holding
+### Client Environment
+* `minetest.get_player_names()`
+ * Returns list of player names on server
+
### Misc.
* `minetest.parse_json(string[, nullvalue])`: returns something
* Convert a string containing JSON data into the Lua equivalent
@@ -870,4 +874,4 @@ Named colors are also supported and are equivalent to
[CSS Color Module Level 4](http://dev.w3.org/csswg/css-color/#named-colors).
To specify the value of the alpha channel, append `#AA` to the end of the color name
(e.g. `colorname#08`). For named colors the hexadecimal string representing the alpha
-value must (always) be two hexadecima \ No newline at end of file
+value must (always) be two hexadecima