On Unknown Command Execution (Event) — Skript

Addon: Skript · Category: Event · Since: 2.17

Syntax

[on] (unknown|non-existent) command [execution]

Description

Called when a player executes an unknown command.

Event Values

  • event-block
  • event-command sender
  • event-location
  • event-world

Examples

on unknown command execution:
	add 1 to {-command_fails::%player%}
	wait 30 seconds:
		remove 1 from {-command_fails::%player%}
	if {-command_fails::%player%} is greater than or equal to 5:
		push the player upwards
		set the unknown command message to "<red>You are executing too many unknown commands too fast!"

View source