Elementium Sign in
Contents

Commands · Step

Run a command as a player

Make a player run a command as if they had typed it, with only their own permissions.

Basic plan m.cmd.run_as_player

In a flow

“When a player clicks the menu → Run a command as the player: spawn.”

When a player clicks the menu → Run a command as the player: spawn.

What it does

Make a player run a command as if they had typed it, with only their own permissions. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. Find it under Commands in the palette.

When to use it

Use it when the flow needs to: make a player run a command as if they had typed it, with only their own permissions.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Sockets: settings you can wire

Player Player

Leave unwired for the player who started the flow, or wire one in, like Player from When a player joins.

What goes there: Type it in the side panel, or wire in a player. e.g. Alex

If it's empty: Optional. Left empty and unwired, the step runs without it.

Command Text

The command line, with or without the slash, like spawn or msg Steve hi. Variables allowed.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, it uses spawn.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more

Often next

Related in Commands

Wires and sockets · Data values · Plans