-
Notifications
You must be signed in to change notification settings - Fork 0
2.0.X
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.
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.
Server started and server stopped messages can be customized in the config.
Every message except from bots are sent to the Minecraft chat.
Bot messages can be sent to the Minecraft chat, if it is activated in the config.
The max length of messages transmitted from Discord to Minecraft can be configured to prevent spam. An error message is shown in the Discord chat, if the message is too long.
Messages, which are commands, are also not sent to the Minecraft chat.
There are default commands added by Discord Integration, custom commands can be added in the config. The command prefix can be configured in the config too.
- /discord commands - shows the list of available commands configured in the Discord Integration with a help message what they do.
- /discord gamerules - shows the values of all Minecraft gamerules.
- /discord mods - shows a list of all mods in the server.
If you type the following commands into the discord chat, you get information from the Minecraft server.
Custom commands can be added in the config.
- !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.
The config file can be found in the "serverconfig" folder in the "world" folder and is named "discordintegration-server.toml".
- active
Should the Discord integration be active?
Default: false - bot_token
Token of your Discord bot
Default: INSERT BOT TOKEN HERE - channel_id
Channel ID where the bot will be working
Default: 0
Available values: 0 or greater - command_prefix
Command prefix for Discord commands
Default: ! - max_char_count
How long should Discord messages send to Minecraft Chat be at most?
If the value is -1, there is no limit to the length.
Default: -1
Available values: -1 to 2000 - messages
Messages shown on Discord- start
Messages shown in Discord, if the Minecraft server started.
Default: Server started - stop
Messages shown in Discord, if the Minecraft server stoped.
Default: Server stopped
- start
- other_bots
Options how to deal with other bots- transmit_bot_messages
Should messages of other bots be sent to the Minecraft chat?
Default: false - other_bots_command_prefixes
Command prefixes of other bots.
Messages with these prefixes are not sent to the Minecraft chat.
- transmit_bot_messages
- commands
Command mapping from Discord to Minecraft commands- discord_command
Discord command without prefix - minecraft_command
Minecraft command without prefix ('/') - enabled
Should the command be active? - description
Description for the help command
- discord_command
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".
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.
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.
To get the channel ID you have to go in Discord into the "User Settings" > "Appearance" and have to activate the "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.
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.