Home / Server

server.isOp()

server.isOp(name)

Checks whether the named player is an operator.

Parameters

NameTypeDescription
namestringPlayer name.

Returns

A boolean.

Example

if server.isOp("Alex") then
  log("Alex is an operator")
end