premium banner
Hytale Server self whitelisting from discord

Description

Hytale Discord Whitelist

Mod for Hytale Servers to whitelist users using a code through a Discord bot.

Creator Code Support Banner

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.

Common issues

There seems to be an issue in the client that prevents it from showing the disconnection message sometimes, reconnecting again most times fixes it. I have reported this bug and hopefully it gets solved soon, as the code is fairly straight forward and uses the provided packet handler to disconnect with a reason.

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