Queries operator status.
None.
A boolean indicating whether this player is an operator.
command('adminchat', function(sender, args)
if not sender:isOp() then
sender:send("Operators only.")
return true
end
server.broadcast("[Admin] " .. sender.name .. ": " .. table.concat(args, " "))
return true
end)
sender:isOp() also works for the console sender, which returns true.