Discord β
Integration with Discord allows sending messages:
- From Minecraft to Discord
- From Discord to Minecraft
Message Types β
Type | Explanation |
---|---|
CHAT | Global chat message |
AFK | Global message from the afk action |
ADVANCEMENT | Achievement message |
DEATH | Death message |
JOIN | Message when a player joins the server |
QUIT | Message when a player leaves the server |
FROM_DISCORD_TO_MINECRAFT | Message from Discord to Minecraft |
FROM_TWITCH_TO_MINECRAFT | Message from Twitch to Minecraft |
FROM_TELEGRAM_TO_MINECRAFT | Message from Telegram to Minecraft |
COMMAND_ME | Global message from the /me command |
COMMAND_BALL | Global message from the /ball command |
COMMAND_BAN | Global message from the /ban command |
COMMAND_BROADCAST | Global message from the /broadcast command |
COMMAND_COIN | Global message from the /coin command |
COMMAND_DICE | Global message from the /dice command |
COMMAND_DO | Global message from the /do command |
COMMAND_HELPER | Global message from the /helper command |
COMMAND_MUTE | Global message from the /mute command |
COMMAND_POLL_CREATE_MESSAGE | Global message from the /poll command |
COMMAND_SPY | Player tracking for the /spy command |
COMMAND_STREAM | Global message from the /stream command |
COMMAND_TRANSLATETO | Global message from the /translateto command |
COMMAND_TRY | Global message from the /try command |
COMMAND_WARN | Global message from the /warn command |
COMMAND_KICK | Global message from the /kick command |
π Localization β
π Path localizations β ΡΠ·ΡΠΊ.yml β integration.discord
βοΈ Default
β
discord:
for-minecraft: "<fcolor:2><name> <fcolor:1>Β» <fcolor:4><message>"
info-channel:
Π°ΠΉΠ΄ΠΈ: "Π’ΠΠ‘ <tps>"
message-channel:
CHAT:
content: "<final_message>"
webhook:
enable: false
avatar: "https://mc-heads.net/avatar/<skin>/32.png"
content: ""
embed:
enable: false
color: ""
title: ""
url: ""
author:
name: ""
url: ""
icon-url: "https://mc-heads.net/avatar/<skin>/16.png"
description: ""
thumbnail: ""
image: ""
timestamp: true
footer:
text: ""
icon-url: "https://mc-heads.net/avatar/<skin>/16.png"
discord:
for-minecraft: "<fcolor:2><name> <fcolor:1>Β» <fcolor:4><message>"
info-channel:
id: "TPS <tps>"
message-channel:
CHAT:
content: "<final_message>"
webhook:
enable: false
avatar: "https://mc-heads.net/avatar/<skin>/32.png"
content: ""
embed:
enable: false
color: ""
title: ""
url: ""
author:
name: ""
url: ""
icon-url: "https://mc-heads.net/avatar/<skin>/16.png"
description: ""
thumbnail: ""
image: ""
timestamp: true
footer:
text: ""
icon-url: "https://mc-heads.net/avatar/<skin>/16.png"
Placeholders
β
You can use all the placeholders that are used in the initial Minecraft message
FOR EXAMPLE, FOR A BAN MESSAGE
If thereβs a placeholder <reason>
, you can use <reason>
in Discord messages as well
There are also placeholders that will ALWAYS be replaced in any message:
<final_message>
The message sent to Minecraft<final_clear_message>
The message sent to Minecraft without Unicode emojis<player>
The nickname of the player who sent the message
Obviously, all placeholders from PlaceholderAPI
and FlectonePulse
will also work.
for-minecraft
β
Message format that will be sent from Discord to Minecraft.
info-channel
β
List of channel IDs and their names.
message-channel
β
List of messages and their configurations.
Message Configuration
If the parameter is empty, it will not be used in the final message.
content
β
Content of a regular message from the Discord bot.
webhook
β
Discord webhook configuration.
enable
β
If enabled, the message will be a webhook.
avatar
β
Link to create the playerβs avatar. If you change it, the link should contain <skin>
.
content
β
Content of the webhook message.
embed
β
Discord embed message configuration.
enable
β
If enabled, the message will include an embed.
color
β
Color of the embed message.
title
β
Title of the embed message.
url
β
URL for the embed message.
author
β
Author of the embed message.
name
β
Name of the embed message author.
url
β
URL of the embed message author.
icon-url
β
Link to the avatar of the embed message author. If you change it, the link should contain <skin>
.
description
β
Description of the embed message.
thumbnail
β
Small image inside the embed message.
name
β
Field name inside the embed message.
value
β
Field value inside the embed message.
inline
β
If enabled, the field will be arranged vertically with other fields.
image
β
Main image inside the embed message.
timestamp
β
If enabled, the embed message will include the timestamp.
footer
β
Footer of the embed message.
text
β
Text in the footer of the embed message.
icon-url
β
Image in the footer of the embed message.
IF YOU WANT TO ADD ANOTHER MESSAGE:
- Take the name from the "Message Types" list.
- Add it to
message-channel
.
message_name:
content: ""
webhook:
enable: false
avatar: "https://mc-heads.net/avatar/<skin>/32.png"
content: ""
embed:
enable: false
color: ""
title: ""
url: ""
author:
name: ""
url: ""
icon-url: "https://mc-heads.net/avatar/<skin>/16.png"
description: ""
thumbnail: ""
fields:
- name: ""
value: ""
inline: false
image: ""
timestamp: true
footer:
text: ""
icon-url: "https://mc-heads.net/avatar/<skin>/16.png"
βοΈ Setting β
π Path integration.yml β discord
βοΈ Default
β
discord:
enable: false
token: ""
presence:
enable: true
status: "ONLINE"
activity:
enable: true
type: "PLAYING"
name: "FlectonePulse"
url: "https://flectone.net/pulse/"
channel-info:
enable: false
ticker:
enable: true
period: 1200
message-channel:
FROM_DISCORD_TO_MINECRAFT: ""
CHAT: ""
destination:
type: CHAT
enable
β
Enables or disables the functionality of the module
WARNING
- Before enabling, insert the Discord bot token.
- After enabling, IT IS RECOMMENDED to restart the server to avoid potential plugin issues.
token
β
Discord bot token for connection. You can use environment variables, for example ${VALUE}
.
presence
β
Bot Status Configuration
enable
β
Enables or disables the custom bot status.
status
β
Mode | Explanation |
---|---|
UNKNOWN | - |
ONLINE | Online |
DO_NOT_DISTURB | Do not disturb (Online) |
IDLE | Online but idle |
INVISIBLE | Invisible |
OFFLINE | Offline |
activity
β
Bot activity in Discord.
enable
β
Enables or disables activity.
type
β
Type | Explanation |
---|---|
UNKNOWN | - |
STREAMING | Streaming |
LISTENING | Listening |
WATCHING | Watching |
CUSTOM | - |
COMPETING | Competing |
name
β
Name of the activity.
url
β
Link for the activity.
channel-info
β
Channel Information Configuration
enable
β
Whether channel information is needed.
ticker
β
Updates every certain interval of time
enable
β
Whether to update or not
period
β
How often in ticks it should update
message-channel
β
List of message types and channel IDs in Discord.
For example, if I want a /ban
command message from Minecraft to be sent to Discord:
- Copy the channel ID in Discord
1286666844358316083
. - Add
CHAT: "1286666844358316083"
.
message-channel:
COMMAND_BAN: "1286666844358316083"
destination
β
Where the message will be sent
HOW TO CHANGE THE DESTINATION?
Replace the value type: here
and restart FlectonePulse
using the /flectonepulse reload
command. Additional settings will appear automatically.
Type | Explanation | Requires additional configuration? |
---|---|---|
ACTION_BAR | Message above the player's inventory | Yes |
BOSS_BAR | Message at the top of the screen | Yes |
BRAND | Message in F3 | No |
CHAT | Message in the chat | No |
TITLE | Full-screen message | Yes |
SUBTITLE | Full-screen message (bottom line) | Yes |
TAB_HEADER | Message in TAB (top) | No |
TAB_FOOTER | Message in TAB (bottom) | No |
TOAST | Message in the top-right corner (achievement) | Yes |
Configuration for ACTION_BAR
destination:
type: ACTION_BAR
times:
stay: 60
times
β
Field | Explanation |
---|---|
stay | Time in ticks to hold the message |
Configuration for BOSS_BAR
destination:
type: BOSS_BAR
duration: 100
health: 1.0
overlay: PROGRESS
color: BLUE
play-boos-music: false
create-world-fog: false
darken-screen: false
duration
β
Duration of the message display
health
β
How full the boss bar will be
overlay
β
Type | Explanation |
---|---|
PROGRESS | Single line |
NOTCHED_6 | Divided into 6 parts |
NOTCHED_10 | Divided into 10 parts |
NOTCHED_12 | Divided into 12 parts |
NOTCHED_20 | Divided into 20 parts |
color
β
Display color
Type |
---|
PINK |
BLUE |
RED |
GREEN |
YELLOW |
PURPLE |
WHITE |
play-boos-music
β
Whether music will play with the message
create-world-fog
β
Whether fog will appear with the message
darken-screen
β
Whether the screen will darken with the message
Configuration for TITLE
(or SUBTITLE
)
destination:
type: TITLE (or SUBTITLE)
subtext: ""
times:
fade-in: 20
stay: 60
fade-out: 20
subtext
β
Message for the second part of the display. For example, if TITLE
is selected, subtext
will be displayed below it, and vice versa.
times
β
Field | Explanation |
---|---|
fade-in | Time in ticks for the message to appear |
stay | Time in ticks to hold the message |
fade-out | Time in ticks for the message to disappear |
Configuration for TOAST
destination:
type: TOAST
icon: "minecraft:diamond"
style: TASK
icon
β
Achievement icon, which can be any Minecraft item (must specify the full path)
style
β
Achievement type (TASK
regular, GOAL
goal, CHALLENGE
challenge)
WARNING
Not recommended for global messages
π Permissions β
π Path permission.yml β integration.discord
βοΈ Default
β
discord:
name: "flectonepulse.module.integration.discord"
type: TRUE
name
β
Permission name
type
β
Permission type
Type | Explanation |
---|---|
TRUE | Available for any player |
FALSE | Available if granted separately (e.g., via LuckPerms) |
OP | Available for server operators |
NOT_OP | Available if granted separately (e.g., via LuckPerms) |