Generate Discord-like invites for your Minecraft server
Looking for the frontend? See here: ~gmem/minecraft-server-invites-frontend
Sometimes you want to allow people to play on your Minecraft server, but you don't necessarily want to go through the whole process of asking for their username, then manually sending the command to add them to the whitelist*. Instead, this application offers the ability to generate a short link that directs a user through an OAuth flow to automatically fetch their Minecraft account (assuming the account has been migrated - I have no plans at this time to support non-migrated accounts, despite how I may personally feel about them) and send a command over RCON to your server to add them to the whitelist. It will then give them the address to connect to the server.
This is currently hosted at mc.gmem.ca while being developed. It's free for the time being, and while I do want to eventually monetize this hosted version, you are more than welcome to either use the hosted version or host your own instance (this is actually recommended if you have the ability, since it allows you to keep RCON private). I do happily accept donations to keep running the public hosted version!
*while the term "whitelist" is by and large being replaced in places, this is still the term Minecraft servers utilise, and is therefore the term used in this application. Should it be changed, use of the term here will also be changed.
docker build . -t whitelistmanager
go build -o wlm -ldflags "-s -w" cmd/wlm/*.go
This project aims to be as dependency free as possible. The SQLite database will be automatically created on first run.
The keys can then be saved to environment variables as follows:
AZURE_OAUTH_CLIENT_SECRET_ID=<client secret id> # technically unused at the moment
docker run whitelistmanager
# Non-docker, built binary
# Non-docker, non-built
go run ./...