Argument Suggestions (Expression) — SkBriggy

Addon: SkBriggy · Category: Expression · Since: 1.0.0

Syntax

suggestions of arg[ument][s] %strings/numbers%

Description

Set the suggestions for an argument. Will accept any object, but strings are the best way to go. For args you can use a number (the position of the argument) or a string (name of the argument), see examples. NOTE: This expression is not dynamic, meaning if variables/expressions are used, they wont update.

Examples

brig command /spawn <string>:
	arguments:
		set suggestions of arg 1 to all worlds
	trigger:
		teleport player to spawn of world({_string})

brig command /setnick <name:string>:
	arguments:
		set suggestions of "name" argument to "<put your nick here>"
	trigger:
		set display name of player to {_name}

View source