Live
Brad Copp updated WarstriderBrad Copp updated Tralalero TralalaBrad Copp updated Tung Tung SahurBrad Copp updated AmelieBrad Copp updated Golemsbadgyver updated HalloweenNeil reacted ⭐ to MyServerGearMayonnaiseScc updated Against The Odds + Ironhoof Raceway Prefabdds reacted 🔥 to WarstriderBrad Copp updated AmelieBrad Copp updated Tung Tung SahurEM$Ø followed @badcopbadgyver updated Christmas GiftsKhaled updated Recycler StationKhaled updated SkinifyRustFlash updated MyServerGearGreifenstein reacted 👍 to Armored Wasteland Zombietruck (static)EM$Ø reacted 👍 to Armored Wasteland Zombietruck (static)Greifenstein published Armored Wasteland Zombietruck (static)Greifenstein reacted 👍 to rPhoneGreifenstein followed @EMSOEM$Ø followed @ionstarEM$Ø reacted 😆 to Christmas GiftsVoodooLights updated My Timed EventsPerfectangel reviewed Christmas GiftsaRandumDude published XmasLightsOnBrad Copp published Tung Tung SahurBrad Copp published Tralalero Tralalabadgyver updated Christmas GiftsPerfectangel reviewed Amelie
Browse/Rust/Plugins/Auto Codelock

Auto Codelock

1 / 4
Description

xAutoCodelock

xAutoCodelock enhances the building experience by intelligently automating one of the most repetitive tasks in Rust - managing code locks. By automatically placing, configuring, and securing locks using each player’s personal PIN, the plugin removes friction without altering the core gameplay balance.

Players can focus on building, defending, and progressing, while their base security is handled smoothly in the background.



⭐ Features

🔐 Automatic Code Lock Placement (Configurable)

  • Automatically places a code lock when players build deployables with lock slots (Door etc.).


🔢 Personal Auto PIN System

  • Players set a 4-digit PIN once - All future locks use it automatically.


🔒 Auto Lock Newly Placed Locks (Configurable)

  • Newly created locks are instantly locked for security.


🏠 Tool Cupboard Requirement (Configurable)

  • Can require building privilege before automation triggers.


👥 Team Access Control (Configurable)

  • Option to allow or require team members to enter codes.


🛡️ Permission based usage (Configurable)

  • Control who can use auto codelock via permissions.


👮 Admin Inspect Command

  • Admins can check player PIN status and if player has permission to use xAutoCodelock.


💾 Persistent PIN Storage

  • Player PINs saved across restarts.


🧹 Optional Wipe Reset

  • Automatically clears PIN data on map wipe if enabled.




🎬 Plugin Preview


Spoiler


















💬 Player Commands

/xpin 1234 → Set your auto PIN
/xpin remove → Remove saved PIN
/xpin → Show current PIN

💬 Admin Command

/xpin check <player name or steamid>



🔑 Permissions

xautocodelock.use - Required to use '/xpin' command
xautocodelock.admin - Required for the '/xpin check' command



⚙️ Config

{
"CommandSetPin": "xpin",
"RequirePermission": true,
"PermissionUse": "xautocodelock.use",
"PermissionAdminInspect": "xautocodelock.admin",
"AutoLockNewCodeLocks": true,
"AutoPlaceCodeLocks": true,
"RequireToolCupboard": true,
"RequireCodeForTeamMembers": true,
"ResetDataOnWipe": false
}



🌎 Language

{
"NoPermission": "You don't have permission to use this command.",
"CommandUsage": "Usage: /{0} 1234 or /{0} remove\n» Current PIN: {1}",
"PinNotSet": "NOT SET",
"PinRemoved": "Auto PIN removed.\n» New code locks will no longer be configured automatically.",
"NoSavedPin": "You don't have a saved auto PIN.",
"InvalidPin": "PIN must be exactly 4 digits (0000 - 9999).",
"PinSet": "Auto PIN set.\n» Newly placed code locks will be automatically locked with your PIN.",
"InspectUsage": "Usage: /{0} check <player name or steamid>",
"InspectPlayerNotFound": "Player not found: {0}",
"InspectMultiplePlayers": "Multiple players matched: {0}. Use full name or SteamID.",
"InspectSummary": "Inspect: {0} ({1})\nSaved PIN: {2}\nHasPermission: {3}"
}

Default configuration
xAutoCodelock.json
json
1{
2 "AutoGenerateCodeIfNotSet": true,
3 "AutoLockNewCodeLocks": true,
4 "AutoPlaceCodeLocks": true,
5 "CommandSetPin": "xpin",
6 "PermissionAdminInspect": "xautocodelock.admin",
7 "PermissionUse": "xautocodelock.use",
8 "RequireCodeForTeamMembers": true,
9 "RequireCodelockItem": true,
10 "RequirePermission": true,
11 "RequireToolCupboard": true,
12 "ResetDataOnWipe": false
13}
Sponsored
Pine Hosting
Pine Hosting

Trusted hosting partner. Affordable game servers with solid support and panels.

Visit site ↗
$12.99
Views1.3k
Downloads6
Purchases0
Rating★ 0.0
Version1.1.2
Compile check✓ Passed Nov 20, 2026
PlatformRust
CategoryPlugins
CompatibleOxide · Carbon
Size24 KB
PublishedMar 28, 2026
UpdatedAug 12, 2026
✓ Reviewed for safety and integrity