🎉 Save 25% on your first month with code: DOOM25
MinecraftMinecraft·Configuration

How to Turn PvP On or Off on Your Minecraft Server

Minecraft 1.21.2 moved PvP from server.properties to /gamerule pvp. Here is how to turn PvP on or off without restarting, plus per-world rules and older versions.

Andreas·
4 min read
·
May 29, 2026
·
Last updated: Jun 4, 2026

If you've updated your Minecraft server to 1.21.2 or later and noticed the old pvp=true line in server.properties no longer works, you're not alone. Mojang removed PvP from server.properties and turned it into an in-game gamerule. The upside: you can toggle PvP without restarting the server, and you can set different rules per world.

This guide covers the new gamerule, the older server.properties method for legacy versions, per-world setups, and a few common gotchas.

Quick Answer

Run one of these commands in the server console or in-game as an operator:

/gamerule pvp true
/gamerule pvp false

The change takes effect immediately. No restart needed.

To check the current setting without changing it:

/gamerule pvp

Why server.properties No Longer Works

Starting in Minecraft 1.21.2 (Java Edition), the pvp key was removed from server.properties. Adding it back has no effect on a 1.21.2+ server. PvP now lives as a per-world gamerule, the same way keepInventory and doDaylightCycle do.

This was a deliberate move from Mojang to make per-world rules consistent and to let server owners change combat behavior on the fly without a restart.

Toggling PvP From the DoomHosting Panel

If you'd rather not type commands in-game, run the command from the console:

  1. Open your server in the panel.
  2. Click the Console tab.
  3. Type /gamerule pvp false (or true) and press Enter.
  4. The console will print a confirmation with the new value.

Players will see PvP attacks blocked or enabled instantly, even mid-fight.

Per-World and Per-Dimension PvP

Because the rule lives on the world, you can use different PvP settings in each one. A few common setups:

  • Survival world with PvP on, spawn world with PvP off. Switch to each world and run the command separately.
  • PvP arenas inside an otherwise peaceful world. The base gamerule controls the whole world. To carve out arena zones, layer a region plugin like WorldGuard on Paper or Spigot on top.
  • Different rules in the Nether or End. PvP is set per dimension, so you can enable it in the Nether while keeping the Overworld safe.

If you're running a multi-world plugin like Multiverse, switch worlds first and then run the command:

/mv tp myworld
/gamerule pvp false

Still On Minecraft 1.21.1 or Earlier?

If you haven't updated yet, the old method still works. To change PvP via server.properties:

  1. Open your server in the panel and stop it.
  2. Click the Files tab and open server.properties.
  3. Find the line pvp=true and change it to pvp=false (or vice versa).
  4. Save the file and start the server.

Once you update to 1.21.2 or later, the gamerule takes over and the server.properties entry is ignored.

Common Questions

Does turning PvP off stop all damage?

No. With /gamerule pvp false, players can't hurt each other directly. They can still take fall damage, drown, burn in lava, and be hit by mobs. Only player-vs-player combat is affected.

What about arrows, splash potions, and TNT?

Indirect damage between players follows the same rule. If PvP is off, a player can't hurt another with arrows, harmful potions, or TNT they placed. The damage simply doesn't apply.

Does this affect Bedrock Edition servers?

No. Bedrock servers still use the pvp setting in server.properties. This change is Java Edition only.

Can players override the gamerule client-side?

No. Gamerules are server-side and apply to every player on the world.

Need Help?

If /gamerule pvp doesn't return a confirmation, check that you're on Minecraft 1.21.2 or newer and that you have operator (OP) status. If you don't have OP yet, see our guide on how to OP yourself on your Minecraft server.

Still stuck? Our support team is available 24/7 from your panel.

🚀

Start your Minecraft Server

High performance hosting with 24/7 support

Related Articles