Script Command Suggestion Filtering Mode (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.17

Syntax

(use no|disable) filtering (for|with) %objects%

Description

Controls how suggestions are filtered for script commands. With no filtering, suggestions are simply displayed as set. With 'starts with' filtering, only suggestions that start with the current input are displayed. With 'contains' filtering, only suggestions that contain the current input are displayed.

Examples

command /message <player> <text>:
	suggestions:
		player argument is set # they are writing the text argument
		if the current input contains "frick":
			set the suggestions for the text argument to "Keep your messages nice please!"
			disable filtering for the text argument's suggestions
	trigger:
		send "<grey><italic>%player% -> You: %text argument%" to player argument
		send "<grey><italic>You -> %player argument%: %text argument%" to player

View source