Add an Admin to a Vintage Story Server
In this article
This guide walks you through granting admin privileges to a player on your Vintage Story server, either through the in-game chat command or by editing the server configuration files. You’ll need access to the server console or the server’s file system, and the player’s username or UID.
What You'll Need
- Access to the server console (if using the in-game command method) or the server’s root directory (if editing files).
- The exact username of the player you want to promote. If they’ve connected before, you can find it in the server log.
- If the server is hosted remotely, make sure you have SSH or remote desktop access.
Step-by-Step
- Open the server console. If you’re running the dedicated server, you’ll see a console window. If you’re using a hosting panel, look for a “Console” or “Terminal” tab.
- Find the player’s UID (optional but recommended). In the console, type
/playerlistto see all connected players and their UIDs. If the player is offline, check the server log file (usually inLogs/folder) for their UID after their last connection. - Grant admin via chat command. In the console, type:
/grant @playername admin
Replace@playernamewith the player’s actual username (e.g.,/grant Steve admin). If you have the UID, you can use/grant @uid admininstead. - Verify the permission. Type
/playerinfo @playernameto see the player’s current roles and permissions. You should seeadminin the list. - Alternative: edit the server config file. If you can’t use the console, stop the server and open the
VSSurvivalServerConfig.jsonfile (orserverconfig.jsondepending on version) in the server’s root directory. - Locate the “Admins” array. In the JSON file, find a section that looks like
"Admins": []. If it doesn’t exist, add it. - Add the player’s UID. Inside the brackets, add the player’s UID as a string, e.g.,
"Admins": ["1234567890"]. If you have multiple admins, separate them with commas. - Save the file and restart the server. After editing, save the file and start the server again. The player will have admin rights when they log in.
Common Mistakes
- Using the wrong name: Usernames are case-sensitive. If the player is “Steve” but you type “steve”, the command won’t work.
- Forgetting the @ symbol: The
@is required before the player name or UID in commands. - Editing the wrong file: Some server setups have multiple config files. Make sure you edit the one that contains the
Adminsarray, not the world-specific config. - Not restarting after file edit: If you edit the JSON file while the server is running, changes won’t apply until you restart.
- Using UID instead of username in command: If you use the
/grantcommand with a username, it works. But if you use a UID, you must prefix it with@as well.
Tips
- Use UIDs for permanent admins: Usernames can change, but UIDs are permanent. For long-term admins, it’s safer to add their UID to the config file.
- Test with a secondary account: If you’re unsure about the process, create a test account and grant it admin first to confirm the steps work.
- Keep a backup of the config file: Before editing, copy the JSON file to a safe location. If something breaks, you can restore it.
- Use the in-game command for temporary admin: If you just need to give admin for a short time, the
/grantcommand is quicker. To revoke, use/revoke @playername admin.
Troubleshooting
- Command not recognized: Make sure you’re typing in the server console, not the game chat. The console accepts commands without the leading slash, but with it also works. If the command fails, check that you have the latest server version.
- Player not found: If you get “player not found”, double-check the spelling and case. If the player has never joined, you can’t grant them admin via command; you must add their UID manually.
- Admin not working after config edit: Ensure the JSON is valid (no trailing commas, correct quotes). Also, make sure you added the UID as a string (in quotes).
- Server won’t start after edit: This usually means the JSON is malformed. Restore your backup and try again, or validate the JSON with an online validator.
- Player still can’t use admin commands: They may need to re-login or restart their client. Also, check if the server has a whitelist or permission plugin that overrides the default admin role.
Frequently Asked Questions
Can I add an admin while the server is running?
Yes, using the /grant command in the console. The change takes effect immediately.
What’s the difference between admin and moderator?
Admin has full permissions, including server configuration and banning. Moderator has limited permissions (e.g., kick, mute) but not full admin. You can grant moderator with /grant @player moderator.
How do I find a player’s UID if they’ve never joined?
You can’t. The UID is generated on first join. You can ask the player to join once, then look it up in the log.
Can I remove admin from a player?
Yes, use /revoke @player admin in the console, or remove their UID from the Admins array in the config file and restart.
Does the admin role apply to all worlds on the server?
Yes, the admin role is server-wide, not per-world. It applies to all worlds hosted on that server instance.
What if I lose admin access on my own server?
If you’re the server owner, you can stop the server, edit the config file to add your UID, and restart. If you don’t know your UID, you can temporarily set "ServerName" to something unique, join, and check the log.