Skip to content

Trigger Command

Starts a flow when a player (or console) runs a specific command.

Inputs: None · Outputs: Then

Description

The Command Trigger is the entry point for command-based flows. When a player types the configured command, execution begins and flows through the connected nodes.

Enable Override Vanilla Command to claim the plain command label while keeping the vanilla namespaced command available. For example, custom /ban can replace the normal label while /minecraft:ban still runs Minecraft's command.

Settings

SettingTypeRequiredDefaultDescription
EnabledBooleanNotrueEnable or disable this trigger. When deploying a previously-enabled command as disabled, it stays registered but can't be executed until the server restarts.
Command NameStringYesThe command name without the leading slash (e.g., spawn).
Override Vanilla CommandBooleanNofalseClaims the plain label while preserving the vanilla namespaced command.
AliasesString ArrayNoAdditional command names that trigger the same action.
DescriptionStringNoDescription shown in the help menu.
Cooldown (seconds)NumberNo0Cooldown between uses (0–3600 seconds).
Cooldown MessageStringNoMessage shown when on cooldown. Use %cooldown_remaining% for the time left.
Who can execute?SelectYesPlayer OnlyWho can run this command: Player Only, Console Only, or Both.

Example

To create a /spawn command:

  1. Set Command Name to spawn
  2. Connect the Then output to a Teleport Player node set to World Spawn

Available Placeholders

When using a Command Trigger, the following command-specific placeholders become available:

  • %command% — The command name
  • %args% — All arguments as a string
  • %args_count% — Number of arguments
  • %arg_1% through %arg_n% — Individual arguments
  • %subcommand% — The first argument (synonym for %arg_1%)

Oasis Admin Editor Documentation