Options (Structure) — Skript

Addon: Skript · Category: Structure · Since: 1.0

Syntax

options

Description

Options are used for replacing parts of a script with something else. For example, an option may represent a message that appears in multiple locations. Take a look at the example below that showcases this.

Examples

options:
	no_permission: You're missing the required permission to execute this command!

command /ping:
	permission: command.ping
	permission message: {@no_permission}
	trigger:
		message "Pong!"

command /pong:
	permission: command.pong
	permission message: {@no_permission}
	trigger:
		message "Ping!"

View source