Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Enable Spawn Protection on a Don’t Starve Together Server

Set Don’t Starve Together’s Griefer Spawn Protection to always by editing the active shard’s worldgenoverride.lua, then restart and test with a newly spawned player.
Length9 min Posted Quest giverVGSources Team

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Enable Don’t Starve Together’s Griefer Spawn Protection by setting spawnprotection to always in the affected shard’s worldgenoverride.lua file, then restart that shard and test with a newly spawned player.

return {
    override_enabled = true,
    settings = {
        spawnprotection = "always",
    },
}

On a dedicated server, the file normally belongs in the cluster’s Master directory, with a matching override in Caves if your cluster runs an underground shard. Back up the cluster before changing an existing world: this is a world-generation override, and the safest verification is a clean restart followed by a fresh spawn.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What spawn protection does in DST

Don’t Starve Together labels this setting Griefer Spawn Protection. When it is active for a newly spawned player, that player can walk through structures and creatures or other players cannot target them during the protection period described by the game’s setting.

The configuration key is spawnprotection. The value always explicitly enables the protection rule. This is different from ordinary server permissions or a temporary invulnerability command: it is a world setting applied through the world-generation override system.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Klei’s support documentation describes Don’t Starve Together as highly moddable and notes that the default for this option depends on the platform. If you need predictable behavior for every new player, use always rather than relying on the platform-dependent default.

Choose the correct value

Value Protection level When to use it
never None Use this when new players should receive no spawn protection.
default Automatic behavior Delegates the decision to the game’s normal, platform-dependent behavior.
always Always enabled The value to use when you want Griefer Spawn Protection enabled explicitly.

Only these three values are relevant for this setting. Spelling matters: the key is lowercase spawnprotection, and the accepted value is lowercase always.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Find the right server folder

A dedicated DST cluster is split into shards. The surface shard is normally named Master. If the cluster has an underground world enabled, its second shard is normally named Caves. Each shard can have its own worldgenoverride.lua.

Klei documents the default configuration roots as ~/.klei on Linux and Documents/Klei on Windows and macOS, with DoNotStarveTogether as the default configuration directory. A typical cluster is named Cluster_1, but you must use the actual cluster directory name on your installation.

Operating system Typical Master path
Linux ~/.klei/DoNotStarveTogether/Cluster_1/Master/worldgenoverride.lua
Windows %USERPROFILE%/Documents/Klei/DoNotStarveTogether/Cluster_1/Master/worldgenoverride.lua
macOS ~/Documents/Klei/DoNotStarveTogether/Cluster_1/Master/worldgenoverride.lua

These are default locations, not guaranteed locations. A hosting panel may expose the same directories through a file manager, and an administrator may have selected a different cluster name or configuration root. Locate the folder that contains the server’s active cluster, then open the shard directory inside that cluster.

Master or Caves: which shard should you edit?

Master controls the surface shard

For a normal surface world, put the override in the cluster’s Master directory. If players normally enter the game through the surface world, this is the first file to check when protection does not appear to work.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Caves controls the underground shard

If the cluster runs a Caves shard and you want the setting represented there as well, place the corresponding worldgenoverride.lua in the Caves directory. Editing only Master does not automatically create a file in Caves; each shard has its own configuration location.

Apply the change to the shard that is actually being started. A cluster can contain both directories even when only one shard is currently enabled, so the presence of a folder alone does not prove that the server process is using it.

Back up the cluster before editing

  1. Stop the affected shard. Use the control panel or service procedure provided by your host, or stop the dedicated-server process through your normal administration method. Do not edit the file while that shard is actively writing configuration or world data.
  2. Back up the whole cluster directory. Include the cluster’s configuration and save data, not just the one Lua file. Give the backup a date-based name so you can identify the pre-change state.
  3. Record the active shard. Note whether the server starts Master, Caves, or both. This prevents a correct edit from being placed in an unused directory.

The caution matters most for an already generated world. worldgenoverride.lua is a world-generation override, so changing it after generation should be treated as an operational change rather than as a harmless in-game toggle. A backup lets you restore the previous cluster if startup errors or unexpected behavior occur.

Create or edit worldgenoverride.lua

Minimal file for a shard without existing overrides

If the target shard does not already contain a worldgenoverride.lua, create a plain-text file with exactly this structure:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
return {
    override_enabled = true,
    settings = {
        spawnprotection = "always",
    },
}

Save the file as worldgenoverride.lua, not worldgenoverride.lua.txt. The extension must remain .lua so the server can load it as a Lua configuration file.

Merge the setting into an existing file

If the file already has a return table, preserve that table and add the setting inside its existing settings table. Do not create a second settings table and do not replace unrelated world-generation options unless you intend to change them.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

For example, an existing file with other settings should be extended in the same table:

return {
    override_enabled = true,
    settings = {
        existing_setting = "existing_value",
        spawnprotection = "always",
    },
}

The example’s other key is illustrative; keep the actual settings already present in your file. If the existing settings table ends its previous entry without a comma, add the comma before inserting spawnprotection. Lua punctuation errors can stop the override from loading.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Copy the override to a second shard when needed

If both surface and underground shards should use the explicit setting, create the same structure under both Master/worldgenoverride.lua and Caves/worldgenoverride.lua. Treat them as separate files. A change in one shard does not rewrite the other.

Restart cleanly and check the startup log

  1. Save the file and confirm it is in the active shard directory for the correct cluster.
  2. Start the affected shard again. If both shards are running, restart each shard after its corresponding file has been changed.
  3. Inspect the startup log for Lua syntax errors, a failure to load the override, or a message indicating that the configuration file was ignored.
  4. If the log reports an error, stop the shard, restore the backup or correct the Lua table, and start it again before testing gameplay.

A server that starts successfully is not, by itself, proof that the value was applied. The file can be valid Lua while still being in the wrong cluster or shard directory, which is why log inspection and an in-game test are both necessary.

Verify protection with a newly spawned player

Test with a player who newly spawns after the restart. Use the same shard whose file you edited. The documented behavior to check is:

  • The newly spawned player can walk through structures.
  • Creatures cannot target that newly spawned player.
  • Other players cannot target that newly spawned player.

Do not rely on an established character who was already present before the change. Spawn protection is tied to the newly spawned-player behavior, and an existing character may not provide a valid test of the override.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

For a cluster with both Master and Caves, test each shard separately if you installed a file in both locations. A successful surface test does not prove that the Caves process loaded its own file.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why spawnprotection = "always" may not take effect

The server was not restarted

Editing the file while the server is running does not establish that the active process has reloaded it. Stop and start the affected shard, then perform the fresh-spawn test. If your host uses separate processes for Master and Caves, restart the process that owns the shard you are testing.

The file is in the wrong directory

Check the complete path, including the cluster name and shard name. The common mistake is editing a file under Cluster_1 while the server is configured to use another cluster directory, or editing Master while testing a player in Caves.

The file has a Lua syntax problem

Look for a missing comma, an unmatched brace, a misspelled key, or a second conflicting table. The safest structure is one top-level return table with one settings table containing spawnprotection = "always". Use the startup log to identify override-loading errors before attempting another gameplay test.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The setting was inserted outside the settings table

The key belongs inside settings. This is correct:

return {
    override_enabled = true,
    settings = {
        spawnprotection = "always",
    },
}

Placing the key beside settings, or creating a second settings table later in the file, does not represent the intended configuration and can cause the server to ignore the value.

You tested an old character

Use a newly spawned player after the clean restart. The documented protection behavior is not established by moving an existing character into the world or by checking a player who spawned before the override was applied.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

The platform’s default behavior is masking the change

If the file still contains default, the game selects its normal behavior, and Klei notes that this default depends on the platform. Replace it with always when the requirement is explicit protection. Conversely, if you intentionally want automatic behavior, use default rather than assuming it means the same thing on every platform.

You changed a generated world without a recovery plan

Because this is a world-generation override, an existing generated world deserves extra care. Restore the backup if the server behaves unexpectedly, confirm the file is syntactically valid, and test the setting with a fresh spawn instead of assuming that an in-game world-customization screen has been rewritten.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Dedicated server versus a hosted world

Dedicated server

For a dedicated server, use the shard-specific worldgenoverride.lua files described above. This method gives the administrator an explicit, repeatable value and makes the setting part of the cluster’s configuration. It also requires attention to the active cluster name, shard directory, restart procedure, and backup.

World created through the game interface

For a world hosted through the game’s own creation flow, configure Griefer Spawn Protection during world creation when that option is presented. The file-based procedure is intended for the dedicated-server cluster layout; do not assume that editing a dedicated-server path changes a locally hosted world.

The exact interface can vary by platform and game version. If the interface offers the three documented choices, select the option corresponding to always when you want protection enabled explicitly. If you need a setting that survives dedicated-server restarts and can be copied between shards, use the cluster file instead.

Operational checklist

  • Confirm the setting name shown by DST is Griefer Spawn Protection.
  • Use the exact key spawnprotection.
  • Use always to enable, never to disable, or default to delegate to automatic behavior.
  • Identify the active cluster directory rather than assuming its name is Cluster_1.
  • Place the file in the relevant shard directory: Master for the surface shard and, when required, Caves for the underground shard.
  • Keep one top-level return table and one existing settings table.
  • Back up the cluster before changing an already generated world.
  • Restart the affected shard cleanly.
  • Check startup logs for Lua or override-loading errors.
  • Verify with a player who newly spawns after the restart.

What administrators should expect from the setting

Spawn protection is a controlled arrival window, not a general replacement for server moderation. Its documented purpose is to prevent the newly spawned player from being immediately obstructed by structures or targeted by creatures and other players. Once the protected spawn state no longer applies, normal world interactions resume.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The value also does not select a different level of protection beyond the three choices. If you need a different rule, the available configuration decision is whether protection is never used, follows the game’s default, or is always enabled. Other server policies must be handled separately.

For a managed DST dedicated server, ask the host for access to the cluster’s shard directories or for a supported file-editing workflow. The required configuration remains the same: the active shard must load a valid worldgenoverride.lua containing spawnprotection = "always", followed by a restart and a fresh-spawn test.

Final answer

To enable spawn protection, stop the server, back up the cluster, add spawnprotection = "always" inside the existing settings table in the active shard’s worldgenoverride.lua, and restart that shard. Use Master for the surface world and add the corresponding file under Caves when the underground shard also needs the setting. Confirm the result with a newly spawned player and the startup log.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.