Discord
Minecraft events relayed to Discord
Overview
Your server will observe any of the below events that occur in Minecraft, triggering appropriate messages to be sent to the configured channel within Discord.
There are two types of messages that can be sent to Discord, an embed and plain text (markdown).
Configuration
All the following messages - that are sent to Discord - fall under the entries[] > discord
section.
Please refer to the templating guide for instructions on substituting player names, etc.
To disable a message, you can set it to null
, e.g. "chat": null
Events
A player sent an in-game message
A player of your server sent a message to the chat.
Token | Type | Meaning | Example |
| String | The player's username | Axieum |
| String | The player's display name | Axieum |
| String | The formatted message contents | I am **bold** text. |
| String | The name of the world the player is in | Nether |
| DateTime | The current date & time | 01/01/2004 |
A player died
A player died and must respawn.
Token | Type | Meaning | Example |
| String | The player's username | Axieum |
| String | The player's display name | Axieum |
| String | The reason for the player's death | tried to swim in lava |
| String | The name of the world the player died in | Nether |
| Integer | X coordinate of where the player died | -126 |
| Integer | Y coordinate of where the player died | 70 |
| Integer | Z coordinate of where the player died | -81 |
| Integer | The player's total score before they died | 34123 |
| Integer | The player's experience levels | 1 |
| Duration | For how long the player lived | 1 day 5 minutes |
| DateTime | The current date & time | 01/01/2004 |
A named animal/monster (with name tag) died
An animal/monster that was previously named with a name tag, died.
This event requires the Chatter World game rule!
Token | Type | Meaning | Example |
| String | The entity's display name (name tag) | jeb_ |
| String | The reason for the entity's death | was slain by Wolf |
| String | The name of the world the entity died in | Overworld |
| Integer | X coordinate of where the entity died | -134 |
| Integer | Y coordinate of where the entity died | 68 |
| Integer | Z coordinate of where the entity died | -87 |
| DateTime | The current date & time | 01/01/2004 |
A player unlocked an advancement
A player made an advancement or challenge.
Token | Type | Meaning | Example |
| String | The player's username | Axieum |
| String | The player's display name | Axieum |
| String | The type of advancement | challenge / task / goal |
| String | The title of the advancement | Cover Me In Diamonds |
| String | A description of the advancement | Equip a full set of diamond armour |
| DateTime | The current date & time | 01/01/2004 |
A player teleported to another dimension
A player entered a different dimension, be it through a portal or via commands. Uses plaintext to prevent chat spam.
Token | Type | Meaning | Example |
| String | The player's username | Axieum |
| String | The player's display name | Axieum |
| String | The name of the world the player left | Overworld |
| String | The name of the world the player entered | Nether |
| DateTime | The current date & time | 01/01/2004 |
A player joined the game
A player logged into the server.
Token | Type | Meaning | Example |
| String | The player's username | Axieum |
| String | The player's display name | Axieum |
| String | The name of the world the player is in | Overworld |
| DateTime | The current date & time | 01/01/2004 |
A player left the game
A player logged out of the server.
Token | Type | Meaning | Example |
| String | The player's username | Axieum |
| String | The player's display name | Axieum |
| String | The name of the world the player is in | Overworld |
| Duration | For how long the player was logged in | 32 minutes 7 seconds |
| DateTime | The current date & time | 01/01/2004 |
The server began to start
The server is about to start.
Token | Type | Meaning | Example |
| DateTime | The current date & time | 01/01/2004 |
The server started and is accepting connections
The server started and is online.
Token | Type | Meaning | Example |
| Duration | For how long the server took to start | 36 seconds |
| DateTime | The current date & time | 01/01/2004 |
The server began to stop
The server is preparing to stop.
Token | Type | Meaning | Example |
| Duration | For how long the server has been online | 1 hour 2 minutes |
| DateTime | The current date & time | 01/01/2004 |
The server stopped and is offline
The server shutdown.
Token | Type | Meaning | Example |
| Duration | For how long the server was online | 1 hour 3 minutes |
| DateTime | The current date & time | 01/01/2004 |
The server stopped unexpectedly and is inaccessible
A server crash was detected.
Token | Type | Meaning | Example |
| String | The reason behind the crash | Exception ticking world |
| Duration | For how long the server was online | 5 hours 3 minutes |
| DateTime | The current date & time | 01/01/2004 |
You can use the uploadCrashReport
option to attach the crash report to the message!
Last updated