Elementium Sign in
Contents

Commands · Check

Sender is a player

Whether a player, not the console, typed the command, so player-only steps are safe.

Basic plan m.cmd.sender_is_player

In a flow

“When a player uses /home → If Sender is a player → Teleport them home.”

When a player uses /home → If Sender is a player → Teleport them home.

What it does

Whether a player, not the console, typed the command, so player-only steps are safe. 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 a player, not the console, typed the command, so player-only steps are safe.

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