TextComponent - Join/Quit/Kick/Death Message (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 3.4.0

Syntax

component join message

Description

Get/set the join, quit, kick, death, unknown command messages.

Examples

on join:
	set component join message to mini message from "<hover:show_entity:player:%uuid of player%><gradient:##FAA401:##5FFA01>%player%<reset><green> joined the game"

on quit:
	set component quit message to mini message from "<hover:show_entity:player:%uuid of player%><gradient:##FAA401:##5FFA01>%player%<reset><red> left the game"

on death of player:
	if attacker is a player:
		set {_t} to translate component of attacker's tool
		set {_m} to mini message from "<##FA1F01>%victim% <##FAD401>was slain by <##72FA01>%attacker% <##FAD401>using <grey>[<##03FCEA><lang:%{_t}%><grey>]"
		set component death message to {_m}

View source