# How to Enable or Disable PvP on Your 7 Days to Die Server (/docs/7-days-to-die/pvp-settings)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Change PvP Settings [#change-pvp-settings]

<Steps>
  <Step>
    Stop the server [#stop-the-server]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop the server.
  </Step>

  <Step>
    Edit serverconfig.xml [#edit-serverconfigxml]

    Click **Files** in the sidebar and open `serverconfig.xml`. Set:

    ```xml
    <property name="PlayerKillingMode" value="3" />
    ```
  </Step>

  <Step>
    Save and start [#save-and-start]

    Click **Save Content** and start from **Console**.
  </Step>
</Steps>

Player Killing Modes [#player-killing-modes]

| Value | Mode           | Description                      |
| ----- | -------------- | -------------------------------- |
| `0`   | No PvP         | Players cannot damage each other |
| `1`   | Allies only    | Can only kill allied players     |
| `2`   | Strangers only | Can only kill non-allied players |
| `3`   | Everyone       | Full PvP (**default**)           |

Drop on Death Settings [#drop-on-death-settings]

These pair with PvP mode to control the death penalty:

| Setting       | Default | Values                                                                            |
| ------------- | ------- | --------------------------------------------------------------------------------- |
| `DropOnDeath` | `1`     | 0 = Nothing, 1 = Everything, 2 = Toolbelt only, 3 = Backpack only, 4 = Delete all |
| `DropOnQuit`  | `0`     | Same values — applied when a player disconnects                                   |

> Changing `DropOnDeath` or `DropOnQuit` from defaults flags the server as "Modded" in the browser.

Related Guides [#related-guides]

* [Server Configuration](/docs/7-days-to-die/server-config)
* [Difficulty Settings](/docs/7-days-to-die/difficulty-settings)
