Hytale Discord Whitelist
Mod for Hytale Servers to whitelist users using a code through a Discord bot.
Configuration
After installing the mod and running the server, you need to configure the mod by editing the discord.yaml file. The configuration file is located in the mods/dstn.to_DiscordWhitelist directory, you'll need to set a server/guild ID and a bot token for a valid discord bot.
Create a discord bot
Head on over to discord.dev to create a application, add a bot to it and obtain a token for it, then add the bot to your server and restart your Hytale server so it connects and creates the slash commands to handle whitelist validation.
Running your server in Docker
If you're looking for an easy way to run your server in Docker, I also created a container image that handles OAuth and automatic mod downloads which includes this mod for its in-built RCON capabilities, you can find that over at dustinrouillard/hytale-docker

