Immerse yourself in an unparalleled web universe with our innovative hosting solutions!

Explore reliable, secure, and high-performance options tailored to all your online needs.

All our web hosting solutions

Discover unmatched power with our innovative and tailor-made VPS servers!

Experience freedom and power with our VPS, designed to take your projects to new heights!

All our VPS servers

Optimize your bots with our dedicated, powerful, and custom hosting!

Experience smooth management and optimal performance with our hosting for bots.

All our bot offers

New BoxGaming offer

Discover our brand new offer, available in our datacenters in France and the United States. With a single offer, you can switch server types at any time.

Discover the offer
Minecraft server hosting offer

Immerse yourself in the ultimate gaming experience with our optimized and powerful hosting!

Minecraft Server

Professional Services (B2B)

The list of offers presented here is intended for professionals. If you are an individual, we invite you to check out our consumer offers.

How to Protect Your Minecraft Server’s Spawn? Ultra-Simple Java & Bedrock Guide

  • Home
  • Blog
  • How to Protect Your Minecraft Server’s Spawn? Ultra-Simple Java & Bedrock Guide
How to Protect Your Minecraft Server’s Spawn? Ultra-Simple Java & Bedrock Guide

How to Protect Your Minecraft Server’s Spawn? Ultra-Simple Java & Bedrock Guide

When I opened my first server, I thought setting a world spawn was enough… Until a malicious player blew up the entire central area! Since then, I’ve learned that securing the spawn is the first step to protect your community and prevent griefing. In this tutorial, I’ll show you all the methods, from the quickest to the most advanced, to lock down your spawn point, on Minecraft Java as well as on Bedrock.

Quick goal: block griefing in 3 steps via the native protection zone or WorldGuard, then explore alternatives (permissions.json, plugins, hosting panels…).


Why protect the spawn?

  • Prevent TNT explosions, fire, and block modifications right at the entrance.

  • Offer a stable welcome for new players (signs, chests, portals).

  • Centralize shops or portals without risk of sabotage.


Prerequisites

  1. Console access or FTP/SFTP to the server.

  2. Your username (and optionally your Java UUID).

  3. For the WorldGuard method: a Paper/Spigot/Purpur server and the WorldEdit plugin.


My lightning-fast method: protect the spawn in 3 steps (Java)

Compatible from vanilla – no plugin installation required.

  1. Open the server.properties file (via FTP or control panel).

  2. Locate the line:

    spawn-protection=16
    • The value is the radius in blocks around the spawn (16 = 33 × 33). Set it to 32 to double, or 0 to disable (not recommended!).

  3. Restart the server to apply. Only operators can now modify blocks within this area.

⏱️ Time: 2 minutes.


Alternative method #1: WorldGuard (maximum precision)

Ideal if you already use Paper/Spigot/Purpur and WorldEdit.

  1. Stand at the corner A of the square you want to protect, then type:

    //pos1
  2. Go to the opposite diagonal corner B:

    //pos2
  3. Define the region:

    /region define spawn
  4. Apply the anti-grief flags:

    /region flag spawn pvp deny
    /region flag spawn mob-spawning deny
    /region flag spawn tnt deny
    /region flag spawn chest-access allow

➡️ Advantage: granular control (fire, TNT, PvP, interactions…).


Alternative method #2: Bedrock Dedicated Server (permissions.json)

  1. In the BDS console, enter:

    setmaxplayers 10

    (optional for testing)

  2. Enable “Operator” mode for yourself only.

  3. In-game, type:

    /gamerule mobgriefing false
    /gamerule tntExplodes false
  4. To block building:

    /setworldspawn ~ ~ ~
    /clone ~-15 ~-5 ~-15 ~15 ~10 ~15 ~-100 256 ~-100 masked move

    (creates an untouchable ghost zone, “clone barrier” method).

💡 Simpler: use an add-on like SpawnProtection available on mcpedl.com; it sets up the rules automatically.


Alternative method #3: control panels (Aternos, Multicraft…)

Host Menu Action
Aternos Server Options “Spawn Protection” slider 0–32
Multicraft Files > Config Files > server.properties Edit spawn-protection and save
Pterodactyl File Manager Edit server.properties, then restart

Key differences Java vs Bedrock

Feature Java Bedrock
Native protection spawn-protection (radius) None (requires commands/gamerules)
Plugins/Add-ons WorldGuard, GriefPrevention SpawnProtection Add-on, scripts
Detailed flags Yes (WorldGuard) Limited (gamerules)

Quick FAQ

Can operators still break the spawn?

Yes. The spawn-protection setting does not affect OPs. To block them, use WorldGuard with -g NON_OP in your flags.

How to prevent fire from spreading?

With WorldGuard:

/region flag spawn fire-spread deny
/region flag spawn lava-fire deny

On Bedrock:

/gamerule doFireTick false

Can you set multiple protected spawns?

Yes with WorldGuard: create multiple regions. In vanilla, only the area around the worldspawn is protected.


Best security practices

  • Backup your world before any major changes.

  • Pair spawn protection with a global anti-grief plugin (CoreProtect, GriefPrevention).

  • Restrict operators and enable a whitelist.


Conclusion

In just a few minutes, you can prevent most damage and welcome your players to a safe spawn. Whether you use the native method, WorldGuard, or Bedrock commands, the key is to act before griefing occurs. Now that your spawn is secure, you can build with peace of mind!