diff --git a/luascripts/admin/warns.lua b/luascripts/admin/warns.lua index a937e12..6b37faa 100644 --- a/luascripts/admin/warns.lua +++ b/luascripts/admin/warns.lua @@ -48,7 +48,7 @@ end function warns.add(clientId, reason, adminId, datetime) local playerid = db.getplayer(players.getGUID(clientId))["id"] - local adminid = db.getplayer(players.getGUID(clientId))["id"] + local adminid = db.getplayer(players.getGUID(adminId))["id"] db.addwarn(playerid, reason, adminid, datetime) end