Making server ignore admin only commands

How could I run a command on a server timer that is only allowed to be ran if the player running it is an admin?

[lua]
function test(ply)
if ValidEntity(ply) && ply:IsAdmin() then
ply:ChatPrint(“Your admin”)
elseif not ValidEntity(ply) then
print(“Your a console”)
else
ply:ChatPrint(“Your not admin”)
end
end
concommand.Add(“yourserverfunc”, test)
[/lua]

Place in lua/autorun/server/yourfile.lua