← All guides
FreaksMC Guides

How to Turn Off PvP on a Minecraft Server

Updated November 21, 2026 · 2 min read

Most friend-group servers want PvP off so nobody gets ambushed at their own base. How you turn it off depends on your Minecraft version, because PvP recently moved from a config file to a game rule.

Short answer
On recent versions (including 26.x), run /gamerule pvp false as an operator. On older versions, set pvp=false in server.properties and restart. On Paper, Spigot or Purpur, also set it in the Nether and End worlds.

New versions: the pvp game rule

Newer Minecraft versions no longer have a pvp= line in server.properties. PvP is a game rule now:

/gamerule pvp false

From the server console, drop the slash. It applies immediately, no restart. To turn it back on, use true.

On Paper, Spigot and Purpur, the Nether and End are separate worlds with their own game rules, so set those too:

/execute in minecraft:the_nether run gamerule pvp false
/execute in minecraft:the_end run gamerule pvp false

Older versions: server.properties

If your server.properties still has a pvp= line, you're on an older version. Open the file in your panel's file manager, change it to:

pvp=false

Save, then restart the server. More on that file in server.properties explained.

Not sure which you have?

What "PvP off" covers

Let players choose

Some groups want PvP for the players who opt in. A PvP toggle plugin (for example PvPManager) lets each player run /pvp to turn it on or off for themselves, with a short cooldown so nobody flips it mid-fight.

PvP only in certain places

With WorldGuard, you can mix and match:

/rg flag spawn pvp deny

That makes your spawn region safe while PvP stays on elsewhere. Flip it around to build an arena where PvP is allowed while the rest of the world is safe. See how to add plugins if you haven't installed one before.

Related

FAQ

I set pvp=false in server.properties but players can still hit each other. Why?

On recent versions PvP moved out of server.properties and became a game rule. Run /gamerule pvp false instead. If there's no pvp= line in your server.properties, your version uses the game rule.

Does turning off PvP stop players hurting each other's pets or using lava?

It stops direct hits, arrows and potions between players. Players can still trap others with lava, TNT or water, so pair it with a protection plugin on bigger servers.

Can I have PvP on in one area only?

Yes. With WorldGuard, turn PvP on globally and deny it in your spawn region, or the other way around, using the pvp region flag.

Want a server that just runs fast?

FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.

See plans from $3/mo

We use cookies for analytics & ads to measure how our site performs. Essential cookies always run. See our Privacy Policy.