minetest.get_player_information

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.get_player_information(playername)


Description

Returns a table containing information about player peer:

{
	address = "127.0.0.1", -- IP address of client
	ip_version = 4, -- IPv4 / IPv6
	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
 
	-- following information is available on debug build only!!!
	-- DO NOT USE IN MODS
	--ser_vers = 26, -- serialization version used by client
	--prot_vers = 23, -- protocol version used by client
	--major = 0, -- major version number
	--minor = 4, -- minor version number
	--patch = 10, -- patch version number
	--vers_string = "0.4.9-git", -- full version string
	--state = "Active" -- current client state
}



This article is incomplete.




This article is missing examples, feel free to add them.


Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox