MCSync: Discord Webhook Integration Guide
This guide will help you set up the Discord webhook feature for MCSync, allowing in-game Minecraft chat to be mirrored in a designated Discord channel.
Table of Contents
- Introduction
- Enabling the Webhook in MCSync
- Creating a Discord Webhook
- Testing the Webhook
- Troubleshooting
Introduction
MCSync provides seamless integration between your Minecraft server and Discord. By enabling the webhook feature, you can relay in-game chat messages to a specific Discord channel, keeping your community connected at all times.
Enabling the Webhook in MCSync
To enable and configure the webhook feature in MCSync:
-
Locate the MCSync configuration file, typically found at
.../plugins/MCSync/config.yml
. -
Open the file in your preferred text editor.
-
Find the following settings and update them as follows:
- Change
discordWebhookEnabled
totrue
. - Paste your Discord webhook URL into the
discordWebhookURL
field.
Example:
- discordWebhookEnabled: true
- discordWebhookURL: 'YOUR_WEBHOOK_URL'
- Change
-
Save the changes to the file.
-
Restart your Minecraft server to apply the changes.
Creating a Discord Webhook
To create a webhook in Discord:
-
Open Discord and navigate to your server.
-
Go to Server Settings:
- Click your server's name at the top-left corner.
- Select Server Settings from the dropdown menu.
-
In the left-hand menu, select Integrations and find the Webhooks section. Click Create Webhook.
-
Configure the webhook:
- Give your webhook a name, such as "MCSync Chat".
- Select the channel where you want in-game chat messages to appear.
-
Copy the webhook URL by clicking the Copy Webhook URL button.
-
Save your changes.
Testing the Webhook
After setting up the webhook:
-
Ensure the MCSync configuration file is correctly updated with
discordWebhookEnabled
set totrue
and a valid webhook URL indiscordWebhookURL
. -
Restart your Minecraft server to load the new settings.
-
Send a message in the in-game chat. It should appear in the designated Discord channel.
Troubleshooting
If the webhook doesn’t work as expected:
-
Check the Configuration File:
- Make sure
discordWebhookEnabled
is set totrue
and the webhook URL is correctly entered.
- Make sure
-
Review Discord Permissions:
- Confirm that the webhook is active and the bot has permission to send messages in the selected channel.
-
Examine Server Logs:
- Look for errors in your Minecraft server logs or console output related to MCSync.
-
Test the Webhook Directly:
- Use a tool like Postman or curl to manually test the webhook URL and confirm it’s functioning.
Example Configuration
Here’s an example of how your configuration settings should look:
- discordWebhookEnabled: true
- discordWebhookURL: 'https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz'
By following this guide, you can seamlessly integrate your Minecraft server's in-game chat with Discord using MCSync. If you need further assistance, contact the MCSync support team or check the official documentation.