Added connection count and last connection information (see 935f71d)

This commit is contained in:
Timo Smit 2017-02-18 12:06:34 +01:00
parent fafc53710b
commit 3ed215ee44

View file

@ -129,7 +129,7 @@ function players.onClientConnect(clientId, firstTime, isBot)
local player = db.getplayer(data[clientId]["guid"]) local player = db.getplayer(data[clientId]["guid"])
if player then if player then
db.updateplayerip(data[clientId]["guid"], data[clientId]["ip"]) db.updateplayer(data[clientId]["guid"], data[clientId]["ip"], os.time())
local alias = db.getaliasbyname(player["id"], data[clientId]["name"]) local alias = db.getaliasbyname(player["id"], data[clientId]["name"])