A whitelist is an access list that limits who can join your server. StarMade includes a built-in whitelist that you enable in server.cfg and populate using whitelist.txt. This guide explains how to set up the whitelist on your VPS.
If you set up StarMade using the Game Server Installer, both files are located in the C:\ZapX-GameServers\starmade\server\StarMade\ folder.
- Connect to your VPS using Remote Desktop.
- Stop the server using the
StarMade (starmade) - Stopshortcut. This saves the universe. - Open
server.cfgand set these three options totrue:
USE_STARMADE_AUTHENTICATION = true
REQUIRE_STARMADE_AUTHENTICATION = true
USE_WHITELIST = true
- Open
whitelist.txtin the same folder, or create the file if it doesn't exist. Add each player on a separate line:
act:-1:PlayerName
act:-1:AnotherPlayer
- Save both files and start the server using
StarMade (starmade) - Start.
Each time the installer runs, it only updates the server name and player slots in server.cfg. Your whitelist settings and whitelist.txt are preserved, even after an update.
To add a player, add a new line to whitelist.txt in the same format. To remove a player, delete the corresponding line. Then restart the server using StarMade (starmade) - Restart to load the changes.
If player names contain special characters, use the exact name shown when they log in to the game to avoid errors.
After restarting the server, try connecting with an account that isn't listed in whitelist.txt. Access should be denied. Then connect using a whitelisted player name.
If whitelisted players can't join, check that StarMade authentication is enabled and required. Otherwise, player names may not be matched reliably. You can find error details in C:\ZapX-GameServers\starmade\logs\server.log.
