Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Vintage Story Server Roles & Privileges Setup

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide explains how to configure roles and privileges on a Vintage Story dedicated server, letting you control what each player can do—from building and claiming land to using admin commands. You'll learn the exact commands and file edits needed, plus how to assign roles to players and groups.

What You'll Need

  • A running Vintage Story dedicated server (Windows or Linux) with console access.
  • Server owner or admin privileges (you need to be in the 'admin' group or have the 'root' privilege).
  • Basic familiarity with editing text files (like serverconfig.json).
  • Player names or Steam IDs of the people you want to assign roles to.

Step-by-Step

  1. Locate the server configuration file. On your server, find the serverconfig.json file. It's usually in the server root directory (where the server executable is). If you're using a hosting panel, look for a "Config Files" section.
  2. Open the file in a text editor. Use a plain text editor like Notepad++ (Windows) or nano (Linux). Do not use a word processor like MS Word, as it may add formatting that breaks the JSON.
  3. Understand the 'roles' section. In the JSON, you'll see a "roles" object. This defines the default roles: default, builder, moderator, admin, and root. Each role has a "privileges" array listing what that role can do.
  4. Add a custom role (optional). To create a new role, add a new key inside the "roles" object. For example, to add a "vip" role, add:
    "vip": {
      "privileges": ["build", "use", "claim", "unclaim"]
    }
    Make sure to add a comma after the previous role's closing brace.
  5. Assign a role to a player. In the same JSON, find the "playerGroups" or "players" section (depending on your server version). It lists players and their assigned groups. Add or edit an entry like:
    "PlayerName": ["vip"]
    Replace PlayerName with the actual player name. You can assign multiple groups, e.g., ["vip", "builder"].
  6. Save the file and restart the server. After editing, save the file and restart the server for changes to take effect. If you're using a hosting panel, use the "Restart" button.
  7. Use in-game commands for quick changes. You can also assign roles without editing files. In the server console or in-game chat (if you have admin), use:
    /grant <player> <privilege>
    to grant a single privilege, or
    /group add <player> <group>
    to add a player to a group. For example: /group add Steve vip.
  8. Revoke privileges. To remove a privilege or group, use:
    /revoke <player> <privilege>
    and
    /group remove <player> <group>
    These changes take effect immediately.
  9. Restrict specific commands. Some privileges control commands (e.g., /time, /give). To allow a role to use a command, add the command name (without the slash) to the role's privileges array. For example, to let moderators use /time, add "time" to the moderator role.
  10. Test the permissions. Log in as a player with the assigned role and try the allowed actions. If something doesn't work, check the console for error messages about missing privileges.

Common Mistakes

  • Editing the wrong file. Make sure you're editing serverconfig.json, not the client-side config or a backup file.
  • Invalid JSON syntax. A missing comma or an extra brace will cause the server to fail to load. Use a JSON validator online before saving.
  • Using the wrong player name. Player names are case-sensitive. Check the exact spelling in the server logs or /players command.
  • Not restarting after file edits. Changes to the JSON file only apply after a server restart. In-game commands apply immediately, but file edits require a restart.
  • Forgetting to grant the 'root' privilege. The root role has all privileges. If you accidentally remove it from yourself, you'll lose admin access. Always keep at least one player in the root group.

Tips

  • Use groups for easier management. Instead of assigning privileges to each player, assign them to a group and then add players to that group. This makes it easy to change permissions for a whole group at once.
  • Start with the default roles. The default roles are well-balanced. Modify them only if you have a specific need.
  • Document your roles. Keep a note of which roles have which privileges, especially if you have many custom roles. This prevents confusion later.
  • Use the in-game help. Type /help in the chat to see a list of available commands and their required privileges.
  • Backup the config file. Before making major changes, copy serverconfig.json to a safe location. If something goes wrong, you can restore it.

Troubleshooting

  • Server won't start after editing the file. The JSON is likely invalid. Check for missing commas, extra braces, or unquoted strings. Use a JSON validator to find the error.
  • Player can't do something they should be able to. Verify the player is actually in the correct group. Use /group list <player> in the console. Also check that the privilege name is spelled correctly. Some privileges are case-sensitive.
  • Player can do something they shouldn't. Check if the player is in multiple groups, and one of those groups has the privilege. Also check if the default role has the privilege, as it applies to everyone.
  • In-game commands not working. Make sure you are typing commands in the server console or as a player with the root privilege. Some commands are only available in the console.
  • Changes not taking effect. For file edits, restart the server. For in-game commands, the change should be immediate. If not, try reloading the config with /reload (if available).

Frequently Asked Questions

How do I give a player admin rights?

Add the player to the admin group using /group add <player> admin or edit the JSON file to include them in the admin group. The admin role includes most privileges except the root exclusive ones.

What is the difference between 'admin' and 'root'?

The root role has all privileges, including the ability to manage roles and privileges. The admin role has most moderation and management privileges but lacks some root-only ones like root itself.

Can I create a role that only allows building?

Yes. Create a new role with only the build and use privileges. Assign that role to players who should only build. Remember to also include interact if they need to open doors or chests.

How do I ban a player from chatting?

There is no specific chat ban privilege. You can mute a player with /mute <player> (if available) or revoke the chat privilege from their role.

Do privileges apply to all worlds on the server?

Yes, roles and privileges are server-wide. They apply to all worlds hosted on the same server instance.

Can I assign a role to a player via the server console?

Yes, you can use the same commands in the server console as in-game chat. Just type the command directly into the console.