Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Chat To Discord

Chat To Discord

Ah yes, yet another one of the many mods that allow for one thing: Sending chat messages in a Minecraft server directly to a Discord webhook.

306
1
Social

Compatibility

Minecraft: Java Edition

1.21.1
1.20.1

Platforms

Fabric
NeoForge
Quilt

Supported environments

Server-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server

Creators

Tiazzz
Tiazzz Head Developer

Details

Licensed Tywrap Studios Protected Art License
Published 8 months ago
Updated last month
DescriptionGalleryChangelogVersions

Chat To Discord; CTD

Yep, you guessed it, just another one of those simplistic mods that send your Minecraft chat to a Discord Webhook.
But that's not all this mod does! It has a few other features that other mods like this lack.


So, just for good measure, let's list all the features in this mod (in no particular order):

  • Sending Player Messages directly to the Webhook.
  • Sending Game Messages (e.g. Deaths, Advancements) directly to the Webhook.
  • Sending Command Messages (e.g. /say) directly to the Webhook.
  • Sending a Start and Stop message for the respective server lifecycle events.
  • The /ctd command, which displays info about your current settings and the mod!
  • Alongside that, /ctd reload reloads your config without the need of a laggy vanilla /reload!
  • Before your message is sent, it goes through some needed Compatibility handlers, which most mods lack:
    • Your message is modified to negate global pings (e.g. @everyone).
    • Your message is modified to negate invite links.
    • Your message is modified to negate any role pings that you don't allow in Config.
    • Your message and player names in it are modified to bypass Discord's native Markdown features (such as Cursive text).
    • When sharing a waypoint using Xaero's Mini-/Worldmap it displays a very "weird" message, this message can actually be deciphered using some smart Java magic and this mod rewrites your message to be more legible.
  • A fully fletched way to send stuff to a Webhook, for addon Creators.
  • A more robust way of handling logging, falling in line with options in Config.
  • The Config gets reloaded even when the vanilla /reload command is run, no need for an entire server restart.
  • If the server crashes, a specialized embed will be sent, displaying the main cause, and also linking to an automatically made mclo.gs page.
  • If you install Spark and you receive a world TimeoutException, it will display it and also dump the entire stacktrace into the logs.

A very simple Config System is also included!:

{
  "format_version": "2.0",
  // All configurations for the Discord integration.
  "discord_config": {
    // A list of webhooks in Strings that the mod will send messages to. eg: "https://discord.com/api/webhooks/..."
    "discord_webhooks": [],
    // Whether to only send player messages to Discord, and not game related messages (e.g. join/leave messages, deaths, etc.).
    "only_send_messages": false,
    // Whether to send messages as an embed. If false, messages will be sent as plain text.
    "embed_mode": false,
    /* The setting below must be an RGB int, so not a `255, 255, 255` type of thing.
       Use this site if you want to use this feature:
       http://www.shodor.org/~efarrow/trunk/html/rgbint.html
    */
    "embed_color_rgb_int": 5489270,
    // A list of role ID's in Strings that users are allowed to ping from MC. e.g. "123456789012345678"
    "role_ids": []
  },
  // Several configurations for utility features.
  "util_config": {
    // Whether to display debug information in the console.
    "debug_mode": false,
    // Whether to suppress all warnings from this mod. NOT RECOMMENDED.
    "suppress_warns": false
  }
}

Static Badge
This file can be found at .../config/ctd.json5.


Extra info:

Static Badge
It is suggested to completely whitelist the Webhook for your Auto-Moderation bots.
Why whitelist? For starters, most bots will flag it as "spamming" since the playername is always included in the message, and thus repeated a few times, whitelisting the Webhook solves the hassle of having to remake it every time your bot deletes it.

Static Badge
For releases older than 1.4.0 please see the official GitHub releases.

Modrinth is open source.

main@396f737

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.