Commands.dat
The Commands.dat file tells your Unturned server what map to use, what to call itself, how many players can join, and other settings.
Table of Commands
Below is a complete list of commands for your Commands.dat file, with descriptions of what they do, how to use them and examples.
Name | Example | Description |
---|---|---|
bind | bind 127.0.0.1 |
Sets the IP address of the server. |
chatrate | chatrate 0.5 |
Sets the chat rate in seconds. Default is 0.25 and max value is 60. |
cheats | cheats |
Enables cheats if present, otherwise they are disabled. |
cycle | cycle 60 |
Sets the cycle of the server in seconds. Default is 3600. |
filter | filter |
When used it rejects players with invalid characters in their name. |
gold | gold |
When used only players with Gold Upgrade DLC can join the server. |
hide_admins | hide_admins |
When used it hides admins from the player list. |
loadout | loadout 255/2/3 |
Sets the player loadout for the server. Learn More |
map | map Washington |
Sets the map of the server. |
maxplayers | maxplayers 24 |
Sets the maximum number of players that can join the server. |
mode | mode easy |
Sets the difficulty of the server to easy , normal , or hard . |
name | name MyServer [KITS, TPA] |
Sets the name of the server. Cannot be longer than 50 characters. |
owner | admin 76561198285897058 |
Sets the owner of the server, grants admin and blocks unadmin. |
password | password 1234 |
Sets the password for the server. |
perspective | perspective both |
Sets the perspective of the server first , third , vehicle , or both . |
port | port 27015 |
Sets the port of the server. |
pve | pve |
Enables PVE if used in the Commands.dat file. Otherwise PVP is enabled. |
queue_size | queue_size 32 |
Sets the queue size of the server. Default is 8 and max value is 64. |
votify | /votify Y/300/300/60/60/8 |
Sets the vote settings for the server. Learn More |
welcome | welcome Welcome to my server! |
Sets the welcome message for the server. |
whitelisted | whitelisted |
When used only whitelisted players can join the server. |
Loadout
The loadout
command sets the skillset and items given to players when they first join the server or respawn.
The first number is the skill set ID, and the following numbers are the item IDs. They must be separated by /
slashes.
Examples:
loadout 255/2/3
- Sets the skillset set to All (255) and gives the player Work Jeans (2) and Orange Hoodie (3)loadout 0/107/108/108/95
- Sets the skillset to Civilian (0) and gives the player an Ace (107), two Ace Clips (108) and one Bandage (95)loadout 2/10/112
- Sets the skillset to Police Officer (2) and gives the player a Police Vest (10) and Bluntforce (112)
Useful links:
Votify
The votify
command sets the vote settings for the server. The parameters must be separated by /
slashes and are as follows:
- Vote Allowed (Y/N) - Whether voting is allowed on the server.
- Pass Cooldown - The cooldown in seconds after a vote passes.
- Fail Cooldown - The cooldown in seconds after a vote fails.
- Vote Duration - The duration in seconds of the vote.
- Yes Percentage - The percentage of yes votes required for the vote to pass.
- Minimum Players - The minimum number of players required for a vote to start.
Examples:
votify Y/300/300/60/60/8
- Allows voting, with a pass and fail cooldown of 300 seconds, a vote duration of 60 seconds, a yes percentage of 60%, and a minimum of 8 players required to start a vote.votify Y/120/90/30/70/4
- Allows voting, with a pass cooldown of 120 seconds, a fail cooldown of 90 seconds, a vote duration of 30 seconds, a yes percentage of 70%, and a minimum of 4 players required to start a vote.
Where is Commands.dat located?
You'll find this file in the Server/Commands.dat
directory of your server. For example, it might be located at:
Servers/unturned/Server/Commands.dat
How Commands.dat works?
All the commands in the Commands.dat are executed when the server starts before the map is loaded.
Video Tutorial
Check out our video tutorial on how to set the name for your server, change map and enable third person perspective. All by editing the Commands.dat file.
If you need assistance with the documentation or have any questions, our community is here to help you: