DiscordPipe is a Minecraft Spigot server plugin that integrates Minecraft server messages, player chats, and various events with a Discord channel. It allows Minecraft players to use Discord emojis in their messages and pipes server events such as player deaths and achievements to specific Discord text channel.
- Easy to use. Support original client.
- Pipe Minecraft player chat messages to a Discord channel.
- Allow Minecraft players to use Discord emojis in their messages.
- Broadcast server events (like player deaths and achievements) to a Discord channel.
- Handle and format various types of messages and attachments from Discord.
- Java 22 or higher (compatibility for older versions haven't been tested yet.)
- Maven
- Discord Bot
- Any client will do, including the original one.
git clone <repository_url>
cd <repository_directory>
Build the plugin using Maven:
mvn package
This will generate a JAR file in the target
directory.
Copy the generated JAR file to your Minecraft server's plugins
directory:
cp target/DiscordLogger-{version}.jar /path/to/your/minecraft/server/plugins/
Start your Minecraft server once, and two new field will be created in your server.properties
.
Add your Discord bot token and channel ID to your server.properties
file:
discord.bot.token=YOUR_DISCORD_BOT_TOKEN
discord.channel.id=DISCORD_TEXT_CHANNEL_ID
If you have no idea what they are, you can create your own Discord bot from Discord developer portal.
Also, you can copy the channel ID by enabling "Developer Mode", right clicking once on the channel, and left click on this button.
If you still have trouble finding them, please refer to other tutorials. They are not the key point of this plugin.
Restart your Minecraft server. The plugin should now be active.
- Minecraft players can use
:emoji_name:
syntax to include Discord emojis in their chat messages. - Messages from Minecraft will be sent to the specified Discord channel.
- Player deaths and achievements will be broadcasted to the Discord channel.
- Messages sent in the specified Discord channel will be broadcasted to the Minecraft server.
- Attachments such as images, videos, and audio files will be handled and announced appropriately.
src/main/java/com/yourname/discordlogger/DiscordLogger.java
: Main plugin class.src/main/java/com/yourname/discordlogger/PlayerChatListener.java
: Handles player chat messages.src/main/java/com/yourname/discordlogger/ServerEventListener.java
: Handles server events like player deaths and achievements.src/main/resources/plugin.yml
: Plugin configuration.
To build the project, run the following command:
mvn clean package
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes.
- Submit a pull request.
This project is licensed under the MIT License.
- JDA for providing the Discord API.
- The Spigot community for their extensive documentation and support.