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

CommandExampleDescription
NameName My ServerName shown in the server browser
PortPort 27015Game port (UDP)
PasswordPassword secretJoin password. Omit the line entirely for a public server
MaxplayersMaxplayers 24Player limit (default 8)
WelcomeWelcome Hello!Message shown to players on join
OwnerOwner 76561198012345678Server owner SteamID64. Has all permissions, cannot be removed in-game
Login_TokenLogin_Token GSLT_HEREGSLT for reliable browser listing. See GSLT Setup
CommandExampleDescription
MapMap PEIActive map name. See Maps & Mods for all options
ModeMode NormalDifficulty: Easy, Normal, or Hard
PerspectivePerspective BothCamera: First, Third, Both, or Vehicle
CycleCycle 3600Day/night cycle length in seconds (3600 = 1 hour)
DecayDecay 604800Structure decay time in seconds (604800 = 7 days)
LoadoutLoadout 15/15/81Starting items — item IDs separated by /

Perspective Options

ValueDescription
FirstFirst-person only. Preferred for competitive PvP
ThirdThird-person only
BothPlayers toggle freely (default)
VehicleFirst-person on foot, third-person in vehicles

Difficulty Modes

ModeItem SpawnsZombie DifficultyLoot
EasyFrequentLow damageGenerous
NormalBalancedStandardStandard
HardScarceHigh damage, more healthRare

Toggle commands are enabled by including the line and disabled by removing it. They take no value.

CommandEffect When Present
PvEDisables player damage. Omit for PvP
CheatsEnable cheat commands for admins
BattlEye_SecureEnable BattlEye anti-cheat. Recommended for public servers
GoldRestrict to Unturned Gold Edition players only
CommandExampleDescription
BindBind 0.0.0.0IP to bind to (leave as default)

Ports

PortProtocolPurpose
27015UDPGame traffic
27016UDPSteam 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 604800

How is this guide?

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

On this page