Use commands to control your Unturned game server while it's running: kick or ban players, change the time and weather, trigger an airdrop, or spawn items for testing. In this guide, we'll show you where to enter commands on your ZapX server and which Unturned server commands you'll need most often.
You have three ways to send commands to your server:
- Console in ZapX: Open your server's Console and enter the command without any characters in front of it, for example,
players. As you type, the command palette suggests matching Unturned commands. - In-game chat: As an admin, enter the command in chat with
/or@in front of it, for example,/day. Learn how to become an admin in Become an admin. - RCON: With RocketMod, you can also send commands remotely. See Using RCON with RocketMod.
Separate multiple values in a command with /, for example, kick Max/Spam. Commands are not case-sensitive. Use help to see all commands, or help kick for details about a specific command.
| Command | Example | Effect |
|---|---|---|
players | players | Shows all players who are currently online |
kick <player>/<reason> | kick Max/Spam | Kicks a player from the server |
ban <player>/<reason>/<duration> | ban Max/Cheating/86400 | Bans a player. Enter the duration in seconds. If you don't specify a reason or duration, the reason is “unspecified” and the ban lasts one year |
unban <SteamID> | unban 76561198000000000 | Removes a ban |
bans | bans | Shows all bans |
slay <player>/<reason> | slay Max/Griefing | Kills and bans the player |
admin <player> / unadmin <player> | admin Max | Grants or revokes admin rights |
admins | admins | Shows all admins |
say <text>/<R>/<G>/<B> | say Restart 18:00/255/0/0 | Sends a chat message to everyone, optionally in a color |
You can always use a player's Steam64 ID instead of their player name.
| Command | Example | Effect |
|---|---|---|
day / night | day | Switches to day or night |
time <seconds> | time 1800 | Sets the time of day |
cycle <seconds> | cycle 7200 | Sets the length of a full day-night cycle (default: 3600) |
weather <none/storm/blizzard> | weather storm | Starts or stops the weather |
airdrop | airdrop | Triggers an airdrop immediately |
teleport <player>/<target> | teleport Max/Anna | Teleports a player to another player, a location, their waypoint (wp), or their bed |
save | save | Saves the world |
Unturned doesn't save automatically in the background. Set up save to run regularly as a standalone command under Schedules in ZapX, for example, every hour.
Some commands only work if Cheats is on its own line in Servers/Server/Server/Commands.dat (see Server configuration).
| Command | Example | Effect |
|---|---|---|
give <player>/<itemID>/<amount> | give Max/81/5 | Gives items to a player. In this example, it's 5 of the item with ID 81 |
vehicle <player>/<vehicleID> | vehicle Max/<vehicleID> | Spawns a vehicle in front of the player |
experience <player>/<amount> | experience Max/500 | Gives a player experience points |
You can find item and vehicle IDs in the Unturned Wiki or in the game's asset files.
Some commands are server settings, such as Name, Map, Password, Mode, PvE, Perspective, Owner, Whitelisted, or Welcome. Set the most important ones in ZapX under Startup parameters in the Configuration tab, and add the rest to Commands.dat. For an explanation of all settings, see the Server configuration guide. Learn about the whitelist in Whitelist.
The Unturned Server Organiser (USO) is a third-party Windows program that many players used to set up and manage a server on their own PC. Today, Unturned includes its own tool, Unturned Dedicated Server (U3DS), in your Steam Library for hosting a server at home.
You don't need either tool for a server at ZapX: your server runs around the clock without your PC having to be on, and you can do everything these tools offer directly in the dashboard:
- Start, stop, and restart your server with one click
- Set the name, map, difficulty, and password under Startup parameters
- Manage files and
Commands.datin the Files tab - Enter commands in the Console and set up recurring tasks under Schedules
- Automatic daily backups
For an overview of all sections, see the Dashboard overview.