Message (Effect) — Skript

Addon: Skript · Category: Effect · Since: 1.0, 2.2-dev26 (advanced features), 2.6 (support for sending anything)

Syntax

(message|send [message[s]]) %objects% [to %audiences%]

Description

Sends a message to an audience, such as a player or the console. Only styles written in given string or in <a href=#ExprColored>formatted expressions</a> will be parsed.

Examples

message "A wild %player% appeared!"
message "This message is a distraction. Mwahaha!"
send "Your kill streak is %{kill streak::%uuid of player%}%." to player
if the targeted entity exists:
	message "You're currently looking at a %type of the targeted entity%!"

View source