![[IMG]](/proxy/image?url=https%3A%2F%2Fcdn.discordapp.com%2Fattachments%2F871123966452957254%2F1094198372988112946%2FConnect_Minecraft_with_Discord.png)
About
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Discord Connection Plugin is a bridge tool for Minecraft and Discord.
It was designed to be used for 1.19.x, but works for 1.12.x and above.
This conecpt makes use of Discords bot API and so requires the creation of a bot account. This plugin uses the JDA library in particular, meaning the bot is operated by Java code and so is integrated into the Spigot plugin. This has the benefit of direct communication and allows automatic hosting of the bot through the Minecraft server.
Features
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Channel synchronization
Once set up, messages sent on the server will be shown in the Discord and messages sent in the Discord will be shown on the Minecraft server.
This only works in the specified Discord channel.
-> Configuration done via bot_config.yml file (chatSync)
Logging
Once set up, the specified Discord channel will receive logs about
- Players joining
- Players leaving
- Server starting
- Server stopping
-> Configuration done via bot_config.yml file (logs)
Information sharing
One command in Discord shows information about the Minecraft server. One command on the Minecraft server will show information about the Discord server
-> See commands below
Account connection
(v. 1.1 and above)
Connect your Minecraft account with your Discord account to execute Minecraft commands from Discord (requires ingame operator permission).
-> Use /connect ingame to create code, use that code with /verify in the connected Discord
More to come soon & please send me ideas :>
Bot requirements
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
- Administrator permission
- Application.commands OAuth2 scope
- Message content intent
Setup
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
1. Copy the plugin into your plugins folder
2. Create a folder called "DiscordConnection"
3. Enable the plugin once by restarting/reloading your server
-> A file called 'bot_config.yml' should now be in your DiscordConnection folder
4. Create a bot account with the listed requirements fulfilled
5. Insert the bot token into the bot_config.yml file
6. Choose a Discord server which you want to connect to your Minecraft server to
7. Insert the server id into the bot_config.yml file
8. Customize the rest of the bot_config.yml file to your likings
9. Restart/Reload your server to apply changes
Also don't forget to invite your bot to your server
It is best to set the same channel for chat synchronization and logging for esthetics, but that is just my opinion 
Plugin Commands
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
/discord Shows member count of the connected server and creates an invite link for it
/profile Shows information about account connection (requires v. 1.1 or above)
/connect Creates an account connection code (requires v. 1.1 or above)
/disconnect Disconnects your account connection (requires v. 1.2 or above)
Bot Commands
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
/server Shows online players and ip of the connected server
/profile Publicly shows information about account connection (requires v. 1.1 or above)
/command <command> Executes a Minecraft command (requires v. 1.1 or above) (requires ingame operator permission)
/verify <code> Verifys an account connection code (requires v. 1.1 or above)