summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-04-06 21:50:45 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-06 22:50:45 +0200
commit88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948 (patch)
tree54cc23c5eead39211d2dadbf1be0e02f90f41f0a /doc
parentbe0663696514dd3d3525949be7c317c9eae9dbb0 (diff)
downloadminetest-88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948.tar.gz
minetest-88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948.tar.bz2
minetest-88b9b9652ab77f91eaa7c6e40b8a48e3a35a7948.zip
[CSM] Add function to get the server protocol version. (#5529)
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md
index 25055c98a..6d62de8a2 100644
--- a/doc/client_lua_api.md
+++ b/doc/client_lua_api.md
@@ -696,6 +696,9 @@ Call these functions only at load time!
* `minetest.disconnect()`
* Disconnect from the server and exit to main menu.
* Returns `false` if the client is already disconnecting otherwise returns `true`.
+* `minetest.get_protocol_version()`
+ * Returns the protocol version of the server.
+ * Might not be accurate at start up as the client might not be connected to the server yet, in that case it will return 0.
### Misc.
* `minetest.parse_json(string[, nullvalue])`: returns something