Elementium Sign in
Contents

Commands · Check

Sender is an operator

Whether the command was typed by an operator or by the console, who may do anything.

Basic plan m.cmd.sender_is_op

In a flow

“When a player uses /staff → If Sender is an operator → Show the admin menu.”

When a player uses /staff → If Sender is an operator → Show the admin menu.

What it does

Whether the command was typed by an operator or by the console, who may do anything. It's a check: put it in an If, and the flow goes one way when it's true and the other when it isn't. Find it under Commands in the palette.

When to use it

Use it when the flow needs to: whether the command was typed by an operator or by the console, who may do anything.

When not to

To pick between more than two outcomes, Switch or Random reads better than a chain of checks.

Typical wiring

Often next

Related in Commands

Wires and sockets · Data values · Plans