1.X.X - GeheimagentNr1/DiscordIntegration GitHub Wiki

This Mod connects the Minecraft with a discord chat.
The Mod adds Discord command integration for the Mods Dimension Access Manager and More MobGriefing Options.
This Mod only works on the server side and won't work on the client side.

Features

Minecraft > Discord

Everything written in the Minecraft chat is added to the Discord chat by a Discord bot.
Additional death messages, advancements messages are sent to Discord.
The "say"- and the "me"-command has been changed and sent their messages to Discord too.

Discord > Minecraft

Every message except from bots are sent into the Minecraft chat.
Messages which are commands are also not sent to the Minecraft chat

Discord Commands

If you type the following commands into the discord chat, you get information from the Minecraft server.

Commands for Vanilla Minecraft

  • !difficulty - shows the difficulty of the server.
  • !gamerules - shows the gamerules and their values.
  • !help - shows all commands with its description.
  • !mods - shows a list of the mods on the server.
  • !online - shows how many and which players are on the server.
  • !seed - shows the seed of the active world.
  • !time - shows the current day time on the server.
  • !tps - shows the tps statistic of the server and it's dimensions.

Commands for the Dimension Access Manager Mod

  • !dimensions - shows the access states of all dimensions.

Commands for the More MobGriefing Options Mod

  • !mobgriefing - shows all mobgriefing options of the mobs.

Common Config

The config file can be found in the config folder and is named "discordintegration.toml".

  • active - Should the discord integration be active? (Since 1.2.0 or 1.16.2-1.1.0 or 1.16.3)
  • bot_token - Token of your Discord bot
  • channel_id - Channel ID of the channel where the bot will be working

How to set up a Discord bot and get the bot token

First you have to log into the Discord Developers Site.
Press "New Application" and enter a name for your application.
Go to the "Bot tab" and click "Add Bot".
Discord Developer Page: Bot Tab

Click onto "Click to Reveal Token" to get the bot token for the config.
To add the bot to a server click on "General Information" and add the "Client ID" into the following link:
https://discordapp.com/oauth2/authorize?client_id=YOUR_BOTS_CLIENT_ID&scope=bot&permissions=3072
You have to replace YOUR_BOTS_CLIENT_ID by the client ID of your bot.
Discord Developer Page: General Information Tab

Open this link and add the bot to one of your server.
You can only add the bot to your own servers. If you want to add the bot to a server, that you don't own, you have to check the "Public Bot" option in the Bot tab and let the server owner add the bot to his/her Discord server.

How to get the channel ID

To get the channel ID you have to go in Discord into the "User Settings" > "Appearance" and have to activate the "Developer Mode"
Discord Developer Mode

Next you go to the server and channel in which the bot shall operate.
Make a right click on this channel and click "Copy ID" and paste it into the config.
Discord Channel Menu

Thanks for the logo to Muse31.
You can use this mod in non-commercial modpacks without asking.
You can find more mods from me here.