{"id":120874,"date":"2024-12-30T16:51:25","date_gmt":"2024-12-30T16:51:25","guid":{"rendered":"\/tutorials\/?p=120874"},"modified":"2026-03-09T19:16:57","modified_gmt":"2026-03-09T19:16:57","slug":"minecraft-spawn-protection","status":"publish","type":"post","link":"\/ng\/tutorials\/minecraft-spawn-protection","title":{"rendered":"How to change Minecraft spawn protection"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>In Minecraft, spawn protection prevents players from placing and destroying blocks at the point where new players first enter a world &ndash; often referred to as the <strong>spawn<\/strong> area. This feature, exclusive to the Java edition, allows only operators (OPs) to place or destroy blocks within the spawn protection area, helping maintain a fair, welcoming, and stable environment.<\/p><p>Spawn protection prevents immediate griefing, preserves server landmarks like information boards, portals, and shops, and ensures a safe starting point. However, it does have limitations. For instance, it cannot prevent mob griefing, explosion damage, or activating pistons, which malicious players may exploit to bypass spawn protection.<\/p><p>This tutorial will guide you through setting up spawn protection on your server to keep the spawn area secure and functional.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-change-spawn-protection-in-minecraft\">How to change spawn protection in Minecraft<\/h2><h3 class=\"wp-block-heading\" id=\"h-1-accessing-and-modifying-server-properties\">1. Accessing and modifying server properties<\/h3><p>To enable spawn protection, locate your <a href=\"\/ng\/tutorials\/minecraft-server-properties\">server properties<\/a>. You can do this in multiple ways:<\/p><p><strong>In Hostinger&rsquo;s Game Panel UI<\/strong><\/p><p>If you purchased one of Hostinger&rsquo;s <a href=\"\/ng\/vps\/minecraft-hosting\">Minecraft hosting plans<\/a>, you can access the server properties through your browser.<\/p><ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/auth.hostinger.com\/login\">Log in<\/a> to your Hostinger account.<\/li>\n\n\n\n<li>In <a href=\"https:\/\/hpanel.hostinger.com\/\">hPanel<\/a>&rsquo;s left-hand menu, click <strong>VPS<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Manage <\/strong>next to your server.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1dce21cd19\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"136\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/image1-2.png\/public\" alt=\"Hostinger hPanel VPS selection screen\" class=\"wp-image-120877\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/image1-2.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/image1-2.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/image1-2.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/image1-2.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/image1-2.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Then, click <strong>Manage panel <\/strong>to log in to your <strong>Game Panel<\/strong> using your administrator credentials.<\/li>\n\n\n\n<li>In the <strong>Instances <\/strong>section, locate your Minecraft server and click <strong>Manage.<\/strong><\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1dce21eb25\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"505\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-instance-manage.png\/public\" alt=\"Hostinger Game Panel Minecraft server card\" class=\"wp-image-120952\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-instance-manage.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-instance-manage.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-instance-manage.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-instance-manage.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-instance-manage.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Once you&rsquo;re in the Instance Management interface, click <strong>Configuration <\/strong>in the left-hand menu and select <strong>Minecraft.<\/strong><\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1dce22075d\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"615\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gm-configuration-minecraft.png\/public\" alt=\"Hostinger Game Panel Instance Configuration sidebar\" class=\"wp-image-120953\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gm-configuration-minecraft.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gm-configuration-minecraft.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gm-configuration-minecraft.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gm-configuration-minecraft.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gm-configuration-minecraft.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"7\" class=\"wp-block-list\">\n<li>At the top, click <strong>Gameplay and Difficulty<\/strong>. Spawn protection configuration will be under <strong>Spawn Protection Radius.<\/strong><\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1dce222500\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"653\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-config-spawn-protection.png\/public\" alt=\"Game Panel instance configuration parameters\" class=\"wp-image-120954\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-config-spawn-protection.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-config-spawn-protection.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-config-spawn-protection.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-config-spawn-protection.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/gp-config-spawn-protection.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"8\" class=\"wp-block-list\">\n<li>Enter the new value. To save, press <strong>Enter.<\/strong><\/li>\n<\/ol><p><strong>Editing server.properties in Game Panel&rsquo;s File Manager<\/strong><\/p><p>You can also edit server properties<strong> <\/strong>directly through the <strong>Game Panel<\/strong>:<\/p><ol class=\"wp-block-list\">\n<li>In <a href=\"https:\/\/hpanel.hostinger.com\/vps\">hPanel<\/a>, Click <strong>Manage<\/strong> next to your server.<\/li>\n\n\n\n<li>Click <strong>Manage panel.<\/strong><\/li>\n\n\n\n<li>Under your Minecraft Instance, click <strong>Manage.<\/strong><\/li>\n\n\n\n<li>Click <strong>File Manager<\/strong>. This will display all server files for your instance.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"69e1dce22405d\"}' data-wp-interactive=\"core\/image\" class=\"wp-block-image aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"514\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/file-manager-server-properties.png\/public\" alt=\"Server files presented in File Manager\n\" class=\"wp-image-120956\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/file-manager-server-properties.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/file-manager-server-properties.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/file-manager-server-properties.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/file-manager-server-properties.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/file-manager-server-properties.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><ol start=\"5\" class=\"wp-block-list\">\n<li>Find the <strong>spawn-protection <\/strong>parameter.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"69e1dce225ea2\"}' data-wp-interactive=\"core\/image\" class=\"wp-block-image aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"662\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/sp-spawn-protection.png\/public\" alt=\"Example of server.properties file opened in File Manager\n\" class=\"wp-image-120957\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/sp-spawn-protection.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/sp-spawn-protection.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/sp-spawn-protection.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/sp-spawn-protection.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/sp-spawn-protection.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><ol start=\"6\" class=\"wp-block-list\">\n<li>Adjust the value, click <strong>Save, <\/strong>and then <strong>Close.<\/strong><\/li>\n\n\n\n<li>Click the triple dot near server.properties and then <strong>Import Configuration.<\/strong><\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-2-saving-and-restarting-the-server\">2. Saving and restarting the server<\/h3><p>We need to <strong>restart <\/strong>the server to apply the changes. On <strong>Game Panel<\/strong>, you can restart by clicking <strong>Manage<\/strong> under your Instance and then <strong>Restart.<\/strong><\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1dce22847a\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"927\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-restart.png\/public\" alt=\"Game Panel Minecraft Instance view focused on server control options\" class=\"wp-image-120959\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-restart.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-restart.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-restart.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-restart.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-restart.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Alternatively, by connecting to the server directly, you can run the command<\/p><pre class=\"wp-block-preformatted\"><strong>systemctl restart minecraft<\/strong><\/pre><p>Now that your Minecraft server is restarted, you can log in and check if it works!<\/p><h2 class=\"wp-block-heading\" id=\"h-minecraft-spawn-tips\">Minecraft spawn tips<\/h2><p>First, let&rsquo;s break down how spawn protection works. The <strong>spawn-protection <\/strong>parameter value is used to determine the size of the area you wish to protect. It defines the length from the spawn point to the side of the spawn protection field.<\/p><p>If the value is <strong>1<\/strong>, protection applies to a <strong>3&times;3 <\/strong>region around the spawn, a value of <strong>3<\/strong> applies to a <strong>7&times;7 <\/strong>region, and so on. The default value of <strong>16<\/strong> protects a <strong>33&times;33 area <\/strong>around spawn, while a value of <strong>0 disables <\/strong>spawn protection completely.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1dce22a17c\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"1460\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/spawn-protection-visual.png\/public\" alt=\"Visual explanation of how spawn protection is applied for a spawn-protection value of 6\" class=\"wp-image-120960\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/spawn-protection-visual.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/spawn-protection-visual.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/spawn-protection-visual.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/spawn-protection-visual.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/spawn-protection-visual.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p><strong>Decide on the spawn protection size<\/strong><\/p><p>To determine the right size for spawn protection, start by measuring the distance in blocks from your spawn point to the border of the area you want to protect in all four directions. Note down these distances, and use the largest value as your spawn protection size to ensure the entire area is covered.<\/p><p>While this approach works well for most cases, different server types may have different needs:<\/p><ul class=\"wp-block-list\">\n<li><strong>PvP servers: <\/strong>Players are unlikely to build around the spawn area, so it&rsquo;s often beneficial to extend the spawn protection region to a larger area.<\/li>\n\n\n\n<li><strong>Survival servers:<\/strong> Since we expect players to build and interact with the environment, it is better to limit spawn protection to a smaller area.<\/li>\n\n\n\n<li><strong>Private servers: <\/strong>Depending on the trust level among your players, you may not need any spawn protection.<\/li>\n<\/ul><p><strong>Test your changes<\/strong><\/p><p>To begin, download your world from your server:<\/p><ol class=\"wp-block-list\">\n<li>Connect to your server through your preferred method, such as an FTP client.<\/li>\n\n\n\n<li>Navigate to the <strong>world<\/strong> folder.<\/li>\n\n\n\n<li>Download the contents of this folder to your device.<\/li>\n<\/ol><p>Once it&rsquo;s downloaded, <a href=\"https:\/\/support.hostinger.com\/en\/articles\/4966663-how-to-upload-a-custom-world-to-your-minecraft-server\">host your Minecraft world<\/a> in a test server &ndash; separately from the live one.<\/p><p>After hosting the world in a test environment, prepare it for testing:<\/p><ol class=\"wp-block-list\">\n<li>If your Minecraft Instance is not running, navigate to <strong>Status <\/strong>and click <strong>Start.<\/strong><\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1dce22c012\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"1043\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-start-1.png\/public\" alt='Instance view with \"Start\" button highlighted.' class=\"wp-image-120961\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-start-1.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-start-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-start-1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-start-1.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/manage-instance-start-1.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>On the left-hand menu, click <strong>Console <\/strong>and run the following commands:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">\/deop <strong>[Your Username]<\/strong><br>\/op <strong>[Random Username]<\/strong><\/pre><p>These commands ensure that at least one OP exists on your server.<\/p><p>With your test environment ready, you can safely experiment with different spawn protection values. Follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Set spawn protection to your desired value.<\/li>\n\n\n\n<li>Restart your server.<\/li>\n\n\n\n<li>Connect to your test server.<\/li>\n\n\n\n<li>If you&rsquo;re not at your spawn point, return there using one of these methods:<\/li>\n<\/ol><ul class=\"wp-block-list\">\n<li><strong>Teleport manually:<\/strong> If you know the coordinates of your spawn point, run this command in the console:<\/li>\n<\/ul><pre class=\"wp-block-preformatted\">\/tp <strong>[Your Username] [X coordinate] [Y coordinate] [Z coordinate]<\/strong><\/pre><ul class=\"wp-block-list\">\n<li><strong>Quick method: <\/strong>For a simpler option, run this command to return to spawn:<\/li>\n<\/ul><pre class=\"wp-block-preformatted\">\/kill <strong>[Your Username]<\/strong><\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Try breaking some blocks within your defined spawn protection area to ensure it&rsquo;s working as expected.<\/li>\n<\/ol><p>If the results aren&rsquo;t what you hoped for, simply adjust the spawn protection value and repeat these steps until you&rsquo;re satisfied.<\/p><p>Once you find a configuration that works for you, apply it to your live server.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Spawn protection is a server-defined safeguard that helps ensure the initial player experience is secure, consistent, and free from destructive behavior. With the right setup, added spawn protection helps protect important areas and creates a safe, welcoming space for everyone on your server.<\/p><h2 class=\"wp-block-heading\" id=\"h-minecraft-spawn-protection-faq\">Minecraft spawn protection FAQ<\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1734961101051\"><h3 class=\"schema-faq-question\">What is spawn protection in Minecraft?<\/h3> <p class=\"schema-faq-answer\">Spawn protection is a setting for your multiplayer Minecraft server that determines an area around your spawn point where regular players cannot place or destroy blocks.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1734961106696\"><h3 class=\"schema-faq-question\">How does spawn protection work?<\/h3> <p class=\"schema-faq-answer\">It works by setting a radius for your spawn protection in the server.properties file, which will designate a protected area in which only <a href=\"\/ng\/tutorials\/how-to-op-someone-in-minecraft\">OPs<\/a> are able to place blocks or destroy blocks.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1734961110339\"><h3 class=\"schema-faq-question\">How can I enable spawn protection?<\/h3> <p class=\"schema-faq-answer\">You can enable spawn protection by setting a value above 0 for the spawn-protection variable in server.properties and ensuring there&rsquo;s at least one op in your server.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>In Minecraft, spawn protection prevents players from placing and destroying blocks at the point where new players first enter a world &ndash; often referred to as the spawn area. This feature, exclusive to the Java edition, allows only operators (OPs) to place or destroy blocks within the spawn protection area, helping maintain a fair, welcoming, [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/minecraft-spawn-protection\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":515,"featured_media":143522,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to change spawn protection on a Minecraft server","rank_math_description":"Check out our guide to learn how to modify or turn off spawn protection on your Minecraft server, which is ideal for creating unique gameplay.","rank_math_focus_keyword":"minecraft spawn protection","footnotes":""},"categories":[22644],"tags":[],"class_list":["post-120874","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/minecraft-spawn-protection","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/minecraft-spawn-protection","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/minecraft-spawn-protection","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/minecraft-spawn-protection","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/minecraft-spawn-protection","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/minecraft-spawn-protection","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/minecraft-spawn-protection","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/minecraft-spawn-protection","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/120874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/515"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=120874"}],"version-history":[{"count":12,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/120874\/revisions"}],"predecessor-version":[{"id":143521,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/120874\/revisions\/143521"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media\/143522"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=120874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=120874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=120874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}