- Works With
This Rust plugin gives players a brief period of invulnerability after they spawn, preventing spawn camping and giving them a fair chance to get started.
Permissions
saferespawn.use
- Required for players to receive protection.
Configuration
JSON:
{
"Version": "1.4.0",
"Protection Duration Seconds": 120.0,
"Enable Protection Against NPC": true,
"Enable Protection Against Animals": true,
"Enable Protection Against Patrol Helicopter": true,
"Protected Players Cannot Harm Others": true,
"Protect Owned Entities": true,
"Enable Protection Only For First Spawn": false,
"Ignore Sleeping Bag Spawns": true,
"Reset Data On Wipe": true,
"End Protection If Combat Blocked (Better No Escape)": false,
"End Protection If Raid Blocked (Better No Escape)": false,
"UI": {
"Background Color (RGBA)": "0.000 0.700 0.000 0.670",
"Icon Color (RGBA)": "0.150 0.850 0.150 1",
"Font Color (RGBA)": "0.989 0.922 0.910 1",
"Icon Path": "assets/content/ui/map/icon-map_shield.png",
"Title Text": "Protected",
"Anchor Min": "1 0.5",
"Anchor Max": "1 0.5",
"Offset Min": "-176 -109.3333",
"Offset Max": "-16 -82.6667"
}
}
Protection Duration Seconds
- Sets how long players are invulnerable after they respawn.Enable Protection Against NPC
- Whether protection applies against npcs as well.Enable Protection Against Animals
- Whether protection applies against animals.Enable Protection Against Patrol Helicopter
- If enabled, the patrol helicopter will not be able to damage protected players.Protected Players Cannot Harm Others
- If enabled, players under protection will not be able to damage other players during their protection period.Protect Owned Entities
- If enabled, entities (like building blocks, deployables, etc.) owned by protected players are also protected from damage by other real players.Enable Protection Only For First Spawn
- Determines if the protection is only for the player's first spawn after connecting to the server.Ignore Sleeping Bag Spawns
- Specifies whether the protection should ignore respawns from sleeping bags. By default, this is enabled, meaning protection will not apply for these spawns.Reset Data On Wipe
- When enabled, all stored data will be reset when the map is wiped.End Protection During Combat Block
- If Better No Escape flags the player as combat-blocked, the shield ends immediately (has no effect if the plugin isn't installed).End Protection During Raid Block
- If Better No Escape flags the player as raid-blocked, the shield ends immediately (has no effect if the plugin isn't installed).UI
- lets you customise the on-screen protection indicator.Background Color
- Panel tint and transparency, specified as an RGBA value.Icon Color
- Tint used for the shield icon, specified as an RGBA value.Font Color
- Colour of the title text and timer, specified as an RGBA value.Icon Path
- Prefab path to the image that's shown (default shield). You can find alternate icon paths here.Title Text
- Single-word label that appears next to the icon.Anchor Min
/Anchor Max
- Unity anchors that decide which corner of the screen the HUD sticks to.Offset Min
/Offset Max
- Pixel offsets that set the exact size and position relative to the chosen anchors.
Stored Data
The plugin also saves the following information:
JSON:
{
"Previously Connected Players": []
}
Previously Connected Players
- Keeps track of players who have connected to the server before. It helps determine if a player is spawning for the first time or if they are a returning player.
Localization
JSON:
{
"PlayerProtected ": "The player you tried to attack is under spawn protection for {0}.",
"OwnedEntityProtected": "You cannot damage this player's structures; they are spawn protected for {0}.",
"ProtectedCantAttackOthers": "You cannot attack players while you are under spawn protection for {0}."
}