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.
- Log into your MintServers panel and click the Stop button.
- Navigate to the Files tab on the left sidebar.
- Click through the file manager to locate your
Commands.datfile. - Click on
Commands.datto open the text editor. - Unlike other settings, the combat mode does not need a value next to it. You simply type
PvPorPvEon its own line. - If you have a brand new server and the file is empty, just type
PvPorPvEon 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:
๐ Servers
๐ unturned (or your custom instance name)
๐ Server
- Click the Save Content button at the top of the editor.
- Return to the Console tab and Start your server.
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:
PvP: This 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.PvE: This 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. If you need any further assistance, just open a support ticket and our team will gladly instruct you on how to resolve the configuration.