How to Configure Your Unturned Server (Commands.dat)
Complete Unturned Commands.dat reference — server name, map, players, PvP/PvE, perspective, difficulty, GSLT, and all settings.
Unturned uses Commands.dat — a simple text file with one command per line. This is the primary config file for your server.
Server File Structure
Commands.dat
Config.json
Adminlist.dat
Whitelist.dat
Blacklist.dat
How to Edit Commands.dat
Stop your server
Go to Console in the XGamingServer Panel and stop the server.
Open the file
Click Files in the sidebar. Navigate to Servers/<ServerName>/Server/ and open Commands.dat.
Edit and save
One command per line. No = signs — just the command followed by a space and the value. Click Save Content and start from Console.
Commands.dat Reference
| Command | Example | Description |
|---|---|---|
Name | Name My Server | Name shown in the server browser |
Port | Port 27015 | Game port (UDP) |
Password | Password secret | Join password. Omit the line entirely for a public server |
Maxplayers | Maxplayers 24 | Player limit (default 8) |
Welcome | Welcome Hello! | Message shown to players on join |
Owner | Owner 76561198012345678 | Server owner SteamID64. Has all permissions, cannot be removed in-game |
Login_Token | Login_Token GSLT_HERE | GSLT for reliable browser listing. See GSLT Setup |
| Command | Example | Description |
|---|---|---|
Map | Map PEI | Active map name. See Maps & Mods for all options |
Mode | Mode Normal | Difficulty: Easy, Normal, or Hard |
Perspective | Perspective Both | Camera: First, Third, Both, or Vehicle |
Cycle | Cycle 3600 | Day/night cycle length in seconds (3600 = 1 hour) |
Decay | Decay 604800 | Structure decay time in seconds (604800 = 7 days) |
Loadout | Loadout 15/15/81 | Starting items — item IDs separated by / |
Perspective Options
| Value | Description |
|---|---|
First | First-person only. Preferred for competitive PvP |
Third | Third-person only |
Both | Players toggle freely (default) |
Vehicle | First-person on foot, third-person in vehicles |
Difficulty Modes
| Mode | Item Spawns | Zombie Difficulty | Loot |
|---|---|---|---|
| Easy | Frequent | Low damage | Generous |
| Normal | Balanced | Standard | Standard |
| Hard | Scarce | High damage, more health | Rare |
Toggle commands are enabled by including the line and disabled by removing it. They take no value.
| Command | Effect When Present |
|---|---|
PvE | Disables player damage. Omit for PvP |
Cheats | Enable cheat commands for admins |
BattlEye_Secure | Enable BattlEye anti-cheat. Recommended for public servers |
Gold | Restrict to Unturned Gold Edition players only |
| Command | Example | Description |
|---|---|---|
Bind | Bind 0.0.0.0 | IP to bind to (leave as default) |
Ports
| Port | Protocol | Purpose |
|---|---|---|
| 27015 | UDP | Game traffic |
| 27016 | UDP | Steam query (automatically game port + 1) |
Example Commands.dat
Name XGaming Unturned Server
Port 27015
Maxplayers 24
Map PEI
Mode Normal
Perspective Both
PvE
Welcome Welcome to our server!
Owner 76561198012345678
Login_Token YOUR_GSLT_HERE
BattlEye_Secure
Cycle 3600
Decay 604800Related Guides
How is this guide?

40% Off — Limited TimeGet your Unturned server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server