How to Configure Your Unturned Server (Commands.dat)

Complete Unturned Commands.dat reference — server name, map, players, PvP/PvE, perspective, difficulty, and all settings.

Unturned uses Commands.dat (one command per line, space-delimited).

Commands.dat
Config.json
Adminlist.dat
Whitelist.dat
Blacklist.dat

All Commands.dat Settings

CommandExampleDescription
NameName My ServerBrowser display name
PortPort 27015Game port (UDP)
PasswordPassword secretJoin password (omit for public)
MaxplayersMaxplayers 24Max player slots
MapMap PEIActive map
PerspectivePerspective BothFirst, Third, Both, Vehicle
ModeMode NormalEasy, Normal, Hard
PvEPvEEnables PvE (omit line for PvP)
CheatsCheatsEnable cheat commands
WelcomeWelcome Hello!Join message
OwnerOwner 76561198012345678Server owner SteamID64
Login_TokenLogin_Token GSLT_HEREGSLT for browser listing
CycleCycle 3600Day/night cycle (seconds)
DecayDecay 604800Structure decay (seconds)
BattlEye_SecureBattlEye_SecureEnable BattlEye anti-cheat
GoldGoldGold-only server
BindBind 0.0.0.0IP binding
LoadoutLoadout 15/15/81Starting items (IDs separated by /)

📝 Toggle commands (PvE, Cheats, BattlEye_Secure, Gold): just include the line to enable, omit to disable.

Perspective Options

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

Create at Steam Game Server Management with App ID 304930. Add: Login_Token YOUR_TOKEN

Without GSLT, the server may not appear in the browser reliably.

Ports

PortProtocolPurpose
27015UDPGame
27016UDPQuery (auto: game +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

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