mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed player info not being updated on first connect (now correctly handle new players as well)
This commit is contained in:
parent
98e8f6d341
commit
b3573b231c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue