lua_api.lua says connection_uptime = 200, -- seconds since client connected
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local info = minetest.get_player_information(name)
print(info["connection_uptime"])
result: 0