Pular para o conteúdo principal

Chat Sync Manifest

Configure Minecraft to Discord chat synchronization

Manifest entry for chat synchronization to Discord. Allows Minecraft chat messages to be sent to Discord channels.

Campos

CampoTipoPadrãoDescrição
enabledBooleantrueWhether chat synchronization is enabled
channelsList<ChatChannelConfig>emptyChat channels configuration
ChatChannelConfig (7)
CampoTipoPadrãoDescrição
channelNameStringglobalUnique identifier for this channel (e.g., 'global', 'staff', 'trade')
discordChannelIdsList<String>emptyDiscord channel IDs where messages will be sent
messageFormatString**{player}**: {message}Message format. Placeholders: {player}, {displayname}, {message}, {world}, {x}, {y}, {z}
enabledBooleantrueWhether this channel is enabled
permissionString—Permission required to send messages to this channel (empty = no permission required)
discordToMinecraftBooleanfalseRelay Discord messages from these channel IDs back into Minecraft chat
minecraftFormatString<blue>[Discord]</blue> <gray>{author}:</gray> {message}In-game format for relayed Discord messages. Placeholders: {author}, {message}
webhookRef<WebhookDefinitionEntry>—Webhook settings for sending messages to Discord
defaultChannelStringglobalDefault channel to use if none specified
playerNameFormatString{player}Format for player names in Discord. Placeholders: {player}, {displayname}
sendJoinLeaveBooleantrueWhether to send join/leave messages to Discord
joinMessageFormatString**{player}** joined the serverJoin message format. Placeholders: {player}
leaveMessageFormatString**{player}** left the serverLeave message format. Placeholders: {player}

How to use it​

Add one or more channels. A player's message is sent to every enabled channel whose permission they hold (empty means everyone). If no channel matches, the channel named in defaultChannel is used.

  • With discordChannelIds filled and the bot connected, messages go through the bot to those channels. Otherwise the manifest's webhook is used.
  • messageFormat accepts {player}, {displayname}, {message}, {world}, {x}, {y} and {z}. playerNameFormat shapes {player}.
  • sendJoinLeave posts the joinMessageFormat and leaveMessageFormat messages.
  • To relay Discord messages into the game, turn on discordToMinecraft on the channel. This needs the bot (see the Discord Link Manifest). Messages from bots and webhooks are ignored, and minecraftFormat (MiniMessage, with {author} and {message}) is shown to online players who hold the channel's permission.