Discord Chat Merge 2020-08-21

Merge Minecraft and Discord chat into one

  1. ForbiddenSoul
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    https://www.mediafire.com/file/374fd8s4jj6te1i/DiscordChatMerge.zip/file
    This plugin is a bare bones light weight plugin to merge you Minecraft in-game chat with Discord text channel chat.

    I keep getting asked to make a tutorial on how to do this from scratch, and this is the plugin from an up and coming tutorial.
    The link will be posted once complete.

    There is some setup users will have to do on their end first, and here is the guide for that:

    1 - Create a Discord App
    First you will need to navigate to https://discord.com/developers/applications, login, then click "New Application" in the top right corner
    01-CreateAnApp.png

    2 - Name The App
    Give your app a name, then click "Create"
    02-NameApp.png

    3 - Create A Bot
    After your App has been created click the "Bot" tab on the left hand side, then the "Add Bot" button on the right of the main window
    03-CreateBot.png

    4 - Confirm Bot Creation
    Click the "Yes, do it!" button to confirm Bot creation
    04-ConfirmBot.png

    5 - Copy Bot Token
    Now that your wild bot has appeared, we will need to use it's secret token to activate the bot when the plugin loads. Under the Token section click "Copy". This token will go into the config.yml, you can add it in now, or wait until the end of the guide.
    05-CopyToken.png

    6 - Set Bot Permissions
    We must make sure that when we invite the Bot to a server it has the required permission to operate correctly. This is done by including them in a Bot invite link. We can have one generated for us by clicking the "OAuth2" tab on the left of the screen, then under the Scopes tab check "bot". This will open up aditioanl bot permission you may need to scroll down to see. Under Bot Permissions check "View Channels" and "Send Messages"
    Now there will be a generated Bot invite link for us, click copy, and we will use that link in the next step.
    06-SetBotPerms.png

    7 - Invite Your Bot
    Paste the link we just made into your browser and navigate to that page.
    Select which server you wish to add the Bot to, and click "Continue"
    07-InviteBot.png

    8 - Authorize Your Bot
    You will now be presented with an authorization screen. This will display a list of permissions that authorizing will give the Bot. Make sure "Read Messages" and "Send Messages" are both checked, and click "Authorize"
    08-AuthorizeBot.png

    9 - Confirm Authorization
    If everything went well you should see an authorization screen, and the Bot should now be offline in the channel you specified in step 7
    09-Authorized.png

    10 - Server Information
    We have to supply some information about your server in the config.yml. We need to supply the Guild (Server) name and an array of channel names for each Guild we want to have chat merged. In our example, our Guild name is "Minecraft Chat" and the channel name is "in-game"
    10-Channel.png

    11 - Setup Config.yml
    Using the information from the previous steps fill out your config.yml.
    [​IMG]

    12 - Reload Plugin
    Now that your config has been filled out correctly, issue the "dcm reload" command
    [​IMG]

    13 - Enjoy
    Your chat is now merged across your Minecraft and Discord servers. Enjoy the cross over conversation
    [​IMG]

    Here is the source code for anyone wishing to expand upon this: DiscordChatMerge

    It is very bare bones, without external libraries other than spigot, and is not well documented.
    The main code resides in "Main" and "DiscordBot", all the other classes are simply wrappers for JS objects to JAVA (which there are libraries for).

Recent Reviews

  1. gamicz
    gamicz
    5/5,
    Version: 2020-08-21
    Really good plugin. How to fix <§[color] nick §[color] > chat... ?
    I have an idea you can add to the status how many people are playing there or the ip server so that it is not so empty.
  2. Tabzlock
    Tabzlock
    5/5,
    Version: 2020-08-21
    Really good plugin but it would be nice to have support for prefixes through luck perms or vault also being able to change the <> is there also possibility of getting this project opensource as I would love to be able to modify some of the source code.
    1. ForbiddenSoul
      Author's Response
      I thought that the .jar I uploaded contained the source code. I must apologize.
      There was supposed to be a video tutorial to go with it, but I can not manage to make it interesting or fun to follow along.
      Here is the source code: https://www.mediafire.com/file/374fd8s4jj6te1i/DiscordChatMerge.zip/file
      As for the feature requests, that will have to be up to someone else.