Page 1 of 1

Bug with get_player_information?

PostPosted: Wed Sep 07, 2016 20:08
by Infernus
Why does minetest.get_player_information(player_name) always return 0 in connection_uptime ?

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

Re: Bug with get_player_information?

PostPosted: Mon Oct 10, 2016 07:02
by DI3HARD139
The "200" is just an example. Are you making sure the players name is spelled correctly and is currently online?