Bug with get_player_information?

Infernus
New member
 
Posts: 9
Joined: Wed Aug 31, 2016 18:10

Bug with get_player_information?

by Infernus » Wed Sep 07, 2016 20:08

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
 

DI3HARD139
Member
 
Posts: 144
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Re: Bug with get_player_information?

by DI3HARD139 » Mon Oct 10, 2016 07:02

The "200" is just an example. Are you making sure the players name is spelled correctly and is currently online?
Servers: mt.rrhgameservers.ml = [RRH] MT-Creative (48250), RRH-Survival (48253), Unknown (48255), Minetest City (48262)
Specs = Intel Core i5-3570s 16GB DDR3 2TB HDD, Ubuntu Server 16.04.1 x64 XFCE
------------------------------------------------------------
System: Lenovo Thinkstation S30 = Intel Xeon E5-2665, 20GB DDR3 (1333MHz Non-ECC), Gigabyte GTX1060 6GB, 3.5TB Storage, Win 10 Pro x64.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 4 guests

cron