On Command (Event) — Skript
Addon: Skript · Category: Event · Since: 2.0
Syntax
[on] command [%texts%]Description
Called when a player enters a command. You can check whether the command is a script command using the '<a href='#CondIsScriptCommand'>Is a Script Command</a>' condition.
Event Values
- event-command sender
- event-player
- event-world
Examples
on command:
the player is in water
cancel the event
send "<red>Commands cannot be executed in water!" to the player