Script Command Suggestion Input (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.17
Syntax
[the] [command] [suggestion|tab completion] (full|complete) inputDescription
Usable in a script command's "suggestions" entry. This provides information including the full content of what the player has typed so far, what they have typed as part of the current argument, and at what position within the full content the current argument starts (starting from 1).
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