An addon to promote someone?

I want to know if there is an addon to promote someone over time so like for example someone joins the server and plays on it for one hour it auto promotes them to Member. If anyone knows of this addon please post it thank you ^~^.

If you have a addon that tracks playtime, you could do something like


if playtime >= 1 then
     adminmod promote little_piggy member
end

something like this?:

Edit:

heres a link to UTime:

You could take utime from ulx and edit it to promote someone after a certain amount of time.
Edit: had a small peak:

in sv_utime.lua in function updatePlayer( ply ), you could change this:



function updatePlayer( ply )
	sql.Query( "UPDATE utime SET totaltime = " .. math.floor( ply:GetUTimeTotalTime() ) .. " WHERE player = " .. ply:UniqueID() .. ";" )
end
hook.Add( "PlayerDisconnected", "UTimeDisconnect", updatePlayer )


to something like this:



function updatePlayer( ply )
	sql.Query( "UPDATE utime SET totaltime = " .. math.floor( ply:GetUTimeTotalTime() ) .. " WHERE player = " .. ply:UniqueID() .. ";" )

        if ( ply:GetUTimeTotalTime() > 86400 ) then
                RunConsoleCommand("ulx", "adduser", "".. ply:Nick().. "", "group_vip")
        end

end
hook.Add( "PlayerDisconnected", "UTimeDisconnect", updatePlayer )


86400 = amount of seconds (not sure if it’s stored in seconds)