Fixed player info not being updated on first connect (now correctly handle new players as well)

This commit is contained in:
Timo Smit 2016-09-05 08:17:08 +02:00
parent 98e8f6d341
commit b3573b231c

View file

@ -58,7 +58,9 @@ function players.onconnect(clientId, firstTime, isBot)
local ip = stats.get(clientId, "playerIP")
db.addplayer(guid, ip)
db.addalias(playerid, name, os.time())
local player = db.getplayer(stats.get(clientId, "playerGUID"))
db.addalias(player["id"], name, os.time())
end
end
end