NEW 📢 Limited launch offer: up to 70% off your first month on every game!See plans

How to turn PvP on or off on your Minecraft server

MinecraftUpdated Oct 28, 20263 min read

On Minecraft 1.21.9 and newer, PvP is a game rule: open the Settings tab, click Game Rules, switch Pvp off and click Save. It applies at once. On older versions it is the PvP switch in Server Properties (Java), which applies after a restart.

Recent versions: the Pvp game rule

  1. Open your server in the panel and click the Settings tab.
  2. Under Config files, click Game Rules.
  3. Type pvp in the search box at the top.
  4. Switch Pvp off so players cannot damage each other, or on to allow it.
  5. Click Save. No restart is needed.
The Game Rules page with the Pvp rule

In the Console you can type gamerule pvp false (or true) instead.

Older versions: the PvP switch

If your Minecraft version still has PvP in server.properties, the switch is there:

  1. Open the Settings tab and click Server Properties (Java).
  2. Switch PvP off or on: Whether players can damage each other.
  3. Click Save & restart.

The panel only shows the settings your version has, so you see either the switch or the game rule, never a switch that does nothing.

Good to know

Already hosting it somewhere else? Move your server to us

OUR LATEST BLOGS