Deciding whether your server allows players to fight each other or forces them to work together against the zombie horde is one of the most important choices you can make for your community. Toggling between PvP (Player vs Player) and PvE (Player vs Environment) on your Unturned server only takes a few seconds.
Always make sure your server is completely stopped before making configuration changes. Editing files while the server is running will cause your changes to be overwritten!
Editing Your Commands.dat File
To change the combat rules, we need to edit the core commands file directly in your panel.
Commands.dat file.
📁 Servers
📁 unturned (or your custom instance name)
📁 Server
Commands.dat to open the text editor.PvP or PvE on its own line.PvP or PvE on the first line. If you already have text in your file, look for an existing combat line to change, or add it to the bottom. Here is how it should look:
Combat Modes Explained
You can choose between two main combat environments. Make sure you spell the mode exactly as shown below in your Commands.dat file:
PvPThis stands for Player vs Player. This is the default setting for Unturned. Players can damage and kill each other, raid bases, and steal loot from other survivors alongside fighting zombies.
PvEThis stands for Player vs Environment. Players cannot deal damage to each other. They must team up to survive against the zombies and the elements. This is ideal for friendly, cooperative survival servers.
🛠️ Troubleshooting Combat Modes
If players are still able to deal damage to each other after switching to PvE, double-check your Commands.dat file to ensure you did not accidentally include both lines or misspell the command.
Still stuck?
Our team is happy to help. Open a ticket through the live chat button in the bottom-right corner of our website, or join our Discord and open a ticket there.
Join our Discord