Simple wrapper for Minecraft servers that aims to be version-independent and independent of mods.
Uses poise to create a Discord Bot as well as manage two webhooks for a chat and console channel.
Messages from Discord are relayed to clients using the /tellraw command, while messages from the game are relayed to the chat channel via a webhook.
Console logs are sent to the console channel, and messages sent there are executed on the server as commands.
mcglue provides automatically built binaries for certain targets in the releases.
They may be retrieved manually or with cargo-binstall with cargo binstall --git https://github.com/Vonr/mcglue mcglue.
You can choose to install from source with cargo install --git https://github.com/Vonr/mcglue
mcglue <command>
# Examples
mcglue java -jar server.jar -nogui
mcglue ./start.sh
# Integrated with itzg/docker-minecraft-server (see test.sh and compose.yml)
docker compose upSee test.sh, and compose.yml for a setup that uses itzg/docker-minecraft-server via Docker Compose.
$DISCORD_BOT_TOKENshould be set to a Discord bot token$DISCORD_WEBHOOK_URLshould be set to a Discord webhook URL$DISCORD_CONSOLE_WEBHOOK_URLshould be set to a Discord webhook URL$DISCORD_CHANNEL_IDshould be set to a Discord channel ID$DISCORD_CONSOLE_CHANNEL_IDshould be set to a Discord channel ID$DISCORD_OPERATOR_ROLE_IDshould be set to a Discord role ID$SERVER_DIRECTORYshould be set to the path to the server's root directory