How to use default commands.dat variables
Do you need to set variables for your server in the Commands.dat file? Are you unsure of which ones to use? This article will tell you about the variables that can be set.
Last updated
Do you need to set variables for your server in the Commands.dat file? Are you unsure of which ones to use? This article will tell you about the variables that can be set.
Last updated
As part of Unturned, many variables can be set, which can impact how you and others experience the game. The table below provides a full list of variables that are usable:
The above information is provided by UnturnedHub. We are not affiliated with this page, and we only provide it as a reference.
Name
Command
Description
bind [IP Address]
This command binds the server to the specified IP address/socket.
camera [Perspective]
This command changes the camera perspective for all users on an Unturned server. The possible perspectives being: first, third, both (allowing the user to choose) and vehicle.
cheats
This command toggles the availability of cheat commands on an Unturned server. It must be written in the commands.dat file - not in-game.
filter
This command filters alpha-numeric characters out of player names.
gamemode [Mode Class Name]
This command can be used to change the gamemode of the server.
gold
This command makes it so that only Gold members can connect to the server. If already enabled, this will toggle the feature off when executed.
hide_admins
This command hides the admin status of players who are admin, so that regular players cannot see that they are administrators.
map [Level Name]
This command changes the map for the server that loads when the server starts up.
mode [Difficulty Mode]
This command changes the difficulty mode of the server - to easy, normal or hard.
owner [Steam ID]
This command sets the server time to night.
password [Password]
This command gives/sets the server password. The password is required to be entered by any player who tries to connect to the server.
port [Port]
This command sets the port the server will run on.
pve
This command enables PvE (plus versus environment) combat.
sync
This command enables the option for players to share savedata between servers.
whitelisted
This command enables the whitelist on an Unturned server, making it so that anyone who is not on the whitelist (permitted) cannot connect to the server.