Colored/formatted/uncolored (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.0, 2.15 ('uncolored' vs 'unformatted' distinction)
Syntax
[(un|non)[-]](colo[u]r-|colo[u]red )%strings%Description
Parses or removes colors and, optionally, chat styles in/from a message.
Examples
on chat:
set message to colored message # only safe tags, such as colors, will be parsed
command /fade <player>:
trigger:
set the display name of the player-argument to the uncolored display name of the player-argument
command /format <text>:
trigger:
message formatted text-argument # parses all tags, but this is okay as the output is sent back to the executor