Guides / server.properties

Spawn protection explained

What spawn-protection does, why players can't break blocks at spawn, and how to turn it off.

Updated

spawn-protection stops non-operators building or breaking blocks near the world spawn. It's the usual reason new server owners find their friends can't dig at spawn.

How it works

The value is a radius in blocks around the spawn point. The default is 16, which protects an area about 33×33 blocks. Operators can still build there.

  • spawn-protection=0 turns it off
  • spawn-protection=16 is the default

The odd part: it needs an operator

Spawn protection only applies once at least one player is an operator. On a brand-new server with no operators, everyone can build at spawn. When you /op yourself, protection suddenly starts working for everyone else.

Should you use it?

  • Friends server: turn it off (0). You trust everyone, and protection is just confusing.
  • Public server: keep it, or better, use a protection plugin like WorldGuard on Paper for proper regions with flags.

The Friends SMP preset in the server.properties generator sets it to 0.

It only covers blocks

Spawn protection stops building and breaking. It doesn't stop PvP, mobs, explosions or opening chests. Use a protection plugin for those.

Work it out for your server

The free server.properties generator gives you the exact settings for your setup.

Open the server.properties generator →