Auto Lock
v2.4.6
7 months ago
works with
To hide codelock messages, users will have to turn streamer mode on.
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.
autolock.use- Allows users to use the command and featuresautolock.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
The settings and options can be configured in the AutoLock file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.
{
"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
The default messages are in the AutoLock file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.
{
"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
v2.4.6
Oxide
Download: AutoLock.cs
- Fix edge case leading to placing player being authed twice when certain other plugins are in use
License
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 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.