Apply Suggestion (Effect) — SkBriggy

Addon: SkBriggy · Category: Effect · Since: 1.0.0

Syntax

apply suggestion %string% with tooltip %~object%

Description

Apply a suggestion with tooltip or list of suggestions to an argument. This is used only in the argument registration section of a brig command and the suggestions section of a big command tree.

Examples

register string arg "world":
	apply suggestion all worlds
register string arg "homes" using:
	apply suggestions indexes of {homes::%uuid of player%::*}
register string arg "homes" using:
	loop {homes::%uuid of player%::*}:
		apply suggestion loop-index with tooltip loop-value
register string arg "gamemode":
	apply suggestion "0" with tooltip "survival"
	apply suggestion "1" with tooltip "creative"
	apply suggestion "2" with tooltip "adventure"
	apply suggestion "3" with tooltip "spectator"

View source