Chat Completions (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 2.17.0

Syntax

[the] [custom] chat completions of %players%

Description

Represents the chat completions of a player.

`set` = Set the list of chat completion suggestions shown to the player while typing a message. If completions were set previously, this method will remove them all and replace them with the provided completions.

`add` = Add custom chat completion suggestions shown to the player while typing a message.

`remove` = Remove custom chat completion suggestions shown to the player while typing a message. Online player names cannot be removed with this method. This will affect only custom completions added by add/set.

`reset` = Will remove all custom chat completions.

NOTE: Supports all objects, will be stringified based on however Skript does it.

Examples

add "i like cheese" to chat completions of player
add all worlds to chat completions of player
set chat completions of player to "potatoes" and "popcorn"
reset chat completions of player

View source