]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - doc/client_lua_api.md
[CSM] Add function to get the server protocol version. (#5529)
[dragonfireclient.git] / doc / client_lua_api.md
index 25055c98a9d47d5d5926b82444fad5ba5d2ebf11..6d62de8a2eceff66cd698e0cd9c073b43b8e5ed4 100644 (file)
@@ -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