How to enable and disable PvP on your server
- 
To edit the PvP setting for your server head over to
DoNotStarveTogether => config => server => cluster.ini. - 
Open up the cluster.ini file and under the [GAMEPLAY] section edit the pvp command:
It should look something like this:pvp = true
 
In this instance I have enabled the PvP, if you want to disable it type in false instead of true. 
- Once done click on Save Content.
 

- Start/Restart your server and you’re done. The change has been applied to the server.