mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed incorrect invokerId being used for setlevel history
This commit is contained in:
parent
370ec98e38
commit
87950f36ce
1 changed files with 5 additions and 5 deletions
|
@ -35,12 +35,12 @@ function admin.kickPlayer(victimId, invokerId, reason)
|
|||
et.trap_DropClient(victimId, "You have been kicked, Reason: "..(reason and reason or "kicked by admin"), 0)
|
||||
end
|
||||
|
||||
function admin.setPlayerLevel(clientId, level, adminId)
|
||||
local playerid = db.getplayer(players.getGUID(clientId))["id"]
|
||||
local adminid = db.getplayer(players.getGUID(clientId))["id"]
|
||||
function admin.setPlayerLevel(clientId, level, invokerId)
|
||||
local playerId = db.getplayer(players.getGUID(clientId))["id"]
|
||||
local invokerPlayerId = db.getplayer(players.getGUID(invokerId))["id"]
|
||||
|
||||
db.updateplayerlevel(playerid, level)
|
||||
db.addsetlevel(playerid, level, adminid, os.time())
|
||||
db.updateplayerlevel(playerId, level)
|
||||
db.addsetlevel(playerId, level, invokerPlayerId, os.time())
|
||||
end
|
||||
|
||||
function admin.onconnectattempt(clientId, firstTime, isBot)
|
||||
|
|
Loading…
Reference in a new issue