Fail Command Execution (Effect) — Skript
Addon: Skript · Category: Effect · Since: 2.17
Syntax
fail [the] command execution with [the] error [message] %text component%Description
Causes a command to fail execution with an error message displayed to the executor.
Examples
command /withdraw <number>:
trigger:
if the number argument is greater than the player's balance:
fail the command execution with the error message "Your balance is less than $%number argument%!"