aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-05-01 21:44:28 +0200
committerGitHub <noreply@github.com>2020-05-01 21:44:28 +0200
commitac368af4fe27f61f5a4209cdfe90956ff745993c (patch)
treee50b778224099e38963db06d28c72ddf4677e528 /doc/lua_api.txt
parent74d9b6010fd42573d20cdbe78f7aaa07badfbf1b (diff)
downloadminetest-ac368af4fe27f61f5a4209cdfe90956ff745993c.tar.gz
minetest-ac368af4fe27f61f5a4209cdfe90956ff745993c.tar.bz2
minetest-ac368af4fe27f61f5a4209cdfe90956ff745993c.zip
Allow connection info to be missing from minetest.get_player_information() (#9739)
fixes #9352 This reverts commit 23c907befea02005e2c0c87fca0131b60aace18a.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 5e4e18b62..f9107b623 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -4160,17 +4160,18 @@ Utilities
{
address = "127.0.0.1", -- IP address of client
ip_version = 4, -- IPv4 / IPv6
+ connection_uptime = 200, -- seconds since client connected
+ protocol_version = 32, -- protocol version used by client
+ formspec_version = 2, -- supported formspec version
+ lang_code = "fr" -- Language code used for translation
+ -- the following keys can be missing if no stats have been collected yet
min_rtt = 0.01, -- minimum round trip time
max_rtt = 0.2, -- maximum round trip time
avg_rtt = 0.02, -- average round trip time
min_jitter = 0.01, -- minimum packet time jitter
max_jitter = 0.5, -- maximum packet time jitter
avg_jitter = 0.03, -- average packet time jitter
- connection_uptime = 200, -- seconds since client connected
- protocol_version = 32, -- protocol version used by client
- formspec_version = 2, -- supported formspec version
- lang_code = "fr" -- Language code used for translation
- -- following information is available on debug build only!!!
+ -- the following information is available in a debug build only!!!
-- DO NOT USE IN MODS
--ser_vers = 26, -- serialization version used by client
--major = 0, -- major version number