You finally built a beautiful spawn for your Minecraft server, and your friend joins and it's covered in TNT. A week of work has now turned into nothing and you have no backups. Luckily, you can create a radius around your spawn so that no one can break your structure anymore.
1. Open the Basic Server Settings
2. Scroll down to Spawn Protection Radius
3. You can set the radius of blocks around your spawn you would like players to break. For example, 16 is one chunk.
4. Now when players try to break blocks by spawn, they won't be able to.