How to set spawn and protect spawn on a Minecraft server
To set the world spawn, stand where you want it and run setworldspawn. To protect it, adjust spawn-protection in server.properties or use WorldGuard for more control.
Set spawn
- Operators stand at the place.
- Run setworldspawn in game.
- Join with a new player or use a respawn test to check.
Vanilla spawn protection
spawn-protection in server.properties sets a radius around spawn where non-ops cannot build or break. Setting it to 0 effectively disables it. Operators are not bound by it.
WorldGuard
WorldGuard lets you define regions, set flags and give permissions per area. Pair it with WorldEdit for selecting regions. See our WorldEdit and WorldGuard basics guide.
Plugin spawn
EssentialsX has a spawn command that teleports to a spawn point set with its own setspawn command, which is separate from vanilla spawn. Make sure you know which you are using.
Steps for WorldGuard
- Install WorldEdit and WorldGuard.
- Select the area.
- Define a region and set flags per docs.
- Test as a non-op player.
Common mistakes
- Testing as an operator, who bypasses protection.
- Confusing vanilla spawn and Essentials spawn.
- Radius too small or too large.
- Forgetting to protect against explosions and fire.