Discussion moved to the Ore topic, here: use this instead MagiBridge - A utility Discord <-> Minecraft chat relay plugin
Please reply there instead here!
MagiBridge is a new Sponge plugin that allows chat coming from Discord be sent to Minecraft or vice versa, trough supported chat plugins. The main goal of MagiBridge is it’s integration with other plugins: I plan in making it compatible with the most popular chat plugins fro Sponge actually.
Note: You need UltimateChat as dependency for this plugin work, it’s the only chat hook implemented at the moment.
There are a few things that you need to do in order to start using MagiBridge. First, you will need a bot token, which you get by creating a bot (if you don’t have one yet), take a look at this quick tutorial: Creating a discord bot & getting a token · reactiflux/discord-irc Wiki · GitHub
Once you got your bot token, open the MagiBridge config (located in your plugin or config dir/magibridge/magibridge.conf. It will look like this:
bot {
# Bot Token of the Bot User that you want to be used when sending messages to Discord
token="your-token-here"
}
channel {
ids {
# Format: ChannelID=IngameChannelName
# Example:
# 12345678912345=global
# Replace the default value with your own
12345678912345=global
}
# ID of the main Discord Channel, where start/stop messages will be sent to
main-discord-channel="MAIN_CHANNEL_ID_HERE"
}
messages {
# Format of the messsage sent from Discord to the server. Supports %user% and %msg%. Example:
# discord-to-server-global-format="&a&l [G] &f&l%user%: &7%msg%"
discord-to-server-global-format="&7[&b&lDiscord&7] &f%user%&7: &7%msg%"
# Message that will be sent to the discord-main-channel when the server starts
server-starting-message="**The server is starting!**"
# Message that will be sent to the discord-main-channel when the server stops
server-stopping-message="**The server is stopping!**"
}
The config is pretty self-explanatory: paste the bot token in it’s field, and the channels you want to forward in the ids
list. They follow the DISCORD_CHANNEL_ID=CHAT_CHANNEL_NAME
rule, replacing DISCORD_CHANNEL_ID
to the ID of the discord channel which you can get by right clicking the channel and clicking in Copy channel ID. Replace MAIN_CHANNEL_ID_HERE
with the Discord channel ID of the channel that the plugin should send start/stop messages, and then the format of the message that will be sent to the game.
If you have any problems using my plugin, or have any suggestion, please open a issue here and I will try to fix asap.
Downloads: Github Releases page | Ore Releases tab
Source: Github
I know I’m not a good coder at all, and that’s my first plugin: it won’t look like those complex and well-coded plugins around, but I will try to keep the code clean and readable ^-^