Mentions
Whenever a channel message contains another player's name, AstralChat fires a mention notification at that player — a sound, a title, and the resolved subtitle from messages.yml. Mentions work across servers via the ChatMentionPacket.
How it triggers
After DefaultChannelChatListener finishes rendering a chat message, it scans the raw text for substrings that match online player names (MentionService). For each match:
If the mentioned player is on the same server, the notification fires locally.
If the mentioned player is on another server, a
ChatMentionPacketis published on theastralchat.mentionsexchange.
The receiving server reads the packet, looks up the player, and delivers the notification if they are still online and have mentions enabled.
Receiving
A mentioned player who has mentions enabled gets:
Sound
minecraft:entity.player.levelupat their location.A title rendered from
mention-titleandmention-subtitleinmessages.yml.%sender%resolves to the sender's name.
The shipped defaults:
Toggling
Players control mentions via the toggle-chat-mentions AstralCore action (typically wired to a menu button). The flag lives on PlayerChatData.mentionsEnabled and is persisted by AstralSync.
Confirmation messages: mentions-enabled/mentions-disabled.
The %chat_mentionsEnabled% placeholder returns the current state and is useful for menu visibility:
See Actions for the action reference and Placeholders for the full placeholder list.