Gradients, Toasts & more
Last updated
Last updated
AdvancedChat has a full support of MiniMessage - syntax to use gradients, hover, clickable messages and other tricks.
Gradient colored text
<gradient:[color1]:[color...]:[phase]>
Transitions between colors. Similar to a gradient, but everything is the same color and the phase chooses that color
<transition:[color1]:[color...]:[phase]>
Allows to change the font of the text
<font:key>
Nothing <font:uniform>Uniform <font:alt>Alt </font> Uniform
Convert text to small caps font
<sc>Example of Small Caps</sc>
Examples:
<selector:_sel_[:_separator_]>
_sel_
, the selector pattern to insert
_separator_
(optional), the separator to insert between values the selector matches
Hello <selector:@e[limit=5]>, I'm <selector:@s>!
Allow insertion of text into chat via shift click
<insertion:_text_>
_text_
, the text to insert
Shift-click <insert:test>this</insert> to insert!
Allows doing multiple things when clicking on the component.
<click:_action_:_value_>
<click:run_command:/seed>Click</click> to show the world seed!
Close all currently open tags, resetting color/decoration/etc. The reset tag cannot be closed.
<reset>
Some text and messages here are provided from Kyori's Adventure wiki post. Big thanks to them for creating the library.
AdvancedChat lets you send your message in the form that you wish! You can use this anywhere in the plugin, from locale file to announcements.
Example: This is a chat message!
Example: [ACTION_BAR]This is an action bar message!
Example: [TITLE]This is a title!
Example: [SUBTITLE]And this is a subtitle!
Arguments:
progress - number with decimal, from 0.0 to 1.0, define progress of bossbar
overlay - PROGRESS, NOTCHED_6, NOTCHED_10, NOTCHED_12, NOTCHED_20
Example: [BOSS_BAR:1.0:GREEN:PROGRESS]Important announcement here!
Arguments:
icon - item or block material to be shown
style - GOAL, TASK, CHALLENGE
background - background of the announcement. By default minecraft:textures/gui/advancements/backgrounds/adventure.png
Example: [ACHIEVEMENT:TOTEM_OF_UNDYING:GOAL]<white>Hey<newline><yellow>%player_name%!
To learn more about MiniMessage, you can check out this page:
_action_
, the type of click event, one of
_value_
, the argument for that particular event, refer to
And so much more! Visit the wiki page with full explanation here:
color -