How to Turn Off PvP on a Minecraft Server
Stop players hurting each other on your Minecraft server.
Turn it off
- Open your server and go to Files.
- Click
server.properties. It opens in the Minecraft Server Properties editor. - Use Search for property name... to find the setting.
- Turn
pvpoff (false). - Save and restart the server from Console.
Players can no longer damage each other directly. Mobs, lava, falling and TNT still hurt everyone.
PvP in some places only
pvp is all or nothing. For PvP arenas with safe zones around them, use a plugin on Paper:
- WorldGuard: mark regions with
pvp alloworpvp deny. - GriefPrevention or Lands: claims where owners choose.
Install them from Package Manager.
On Fabric or Forge
server.properties works the same. For zones, look for a claims mod in Package Manager.