birthdates
Automatically adds a codelock to a lockable entity with a set pin

Supported Games
works with

To hide codelock messages, users will have to turn streamer mode on.

Permissions

  • autolock.use - Allows users to use the command and features
  • autolock.item.bypass - Bypass the item requirement

Chat Commands

  • /al or autolock - Brings up a help menu
  • /al or autolock toggle - Toggles automatic codelocks
  • /al or autolock code - Changes the code of a player

Configuration

{
  "Disabled Items (Prefabs)": [
    "assets/prefabs/deployable/large wood storage/box.wooden.large.prefab"
  ],
  "Code Lock Expiry Time (Seconds, put -1 if you want to disable)": 10.0,
  "No Escape": {
    "Block Auto Lock whilst in Combat?": true,
    "Block Auto Lock whilst Raid Blocked?": true
  }
}

Localization

{
  "CodeAdded": "Codelock placed with code {0}.",
  "Disabled": "You have disabled auto locks.",
  "Enabled": "You have enabled auto locks.",
  "CodeUpdated": "Your new code is {0}.",
  "NoPermission": "You don't have permission.",
  "InvalidArgs": "/{0} code|toggle",
  "RaidBlocked": "The codelock wasn't automatically locked due to you being raid blocked!",
  "CombatBlocked": "The codelock wasn't automatically locked due to you being combat blocked!"
}

Credits

FuJiCuRa, implementation of hidden codelock messages

MIT License


Copyright (c) 2020 birthdates


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.