Velocity Discord
Chat from all servers gets bridged with a discord channel
Features
- Configurable
- Webhooks or embeds or normal text for messages
- Player count in bot status
- List command
- Templating syntax for all messages
- Death and Advancement messages shown
- Server start/stop messages
- Server status in channel topic
- Reload command for config changes while the server is running
Note
This requires a companion Velocity plugin
and companion backend mod/plugin for advancement/death messages
Installation
- Create a bot application here
- Go to the
Bot tab and click Add bot
- Enable the
SERVER MEMBERS INTENT and MESSAGE CONTENT INTENT under Privileged Gateway Intents
- Copy the bot's token, you might have to click
Reset Token first
- Install the plugin on your server, start the server once, then stop the server again
- Open the plugin config file at
plugins/discord/config.toml
- Under
[discord], paste your token in place of TOKEN
- Under
[discord], paste the channel id you want to use
- To get a channel id, you have to enable developer mode in Discord
- Open Discord settings, go to
Advanced, then turn on Developer Mode
- Now right-click the channel you want to use and click
Copy ID
- Set any additional config options you want
- Start the server and check if it works
For Webhooks
- Create a webhook in the channel you want to use
- Right-click the channel, click
Edit Channel, go to Integrations, click Create Webhook
- Copy the webhook URL
- Paste the webhook URL under
[discord.webhook] in the config file
For advancements/deaths
- Install the YepLib velocity plugin alongside this plugin
- Install the YepTwo backend mod/plugin on each of your backend servers that you want to
receive advancements/deaths from
Configuration
The config file is generated at plugins/discord/config.toml. See here for the default config