This plugin enables players to deploy code locks onto quarries and pump jacks in the same way code locks are deployed on doors and containers (no commands required).
Features
- Players can deploy up to 3 code locks on different parts of the quarry and pump jack, including the engine switch, fuel storage, and resources storage.
- Automatic sharing with teammates, clanmates, and friends.
- Code locks can be deployed either unlocked (similar to vanilla behavior) or set to lock automatically with a randomly generated code.
- Compatible with other code lock plugins such as Auto Code.
- Works with both deployable and static quarries.
Permissions
quarrylock.admin
- Allows to open any locked quarry or pump jack.
Configuration
{
"Version": "2.3.0",
"Only Quarry Owner Can Place Locks": true,
"Enable Auto Locking On Placement": true,
"Enable Lock Placement On Static Extractors": true,
"Auto Authorize Teammates": true,
"Auto Authorize Clanmates": false,
"Auto Authorize Friends": false
}
Localization
{
"Locked": "It's locked...",
"CodeLockDeployed": "Code lock deployed successfully.",
"AutoLocked": "Auto locked with code: <color=#FABE28>{0}</color>.",
"TeamAuthorized": "Your team members have been automatically whitelisted on this code lock.",
"ClanAuthorized": "Your clan members have been automatically whitelisted on this code lock.",
"FriendsAuthorized": "Your friends have been automatically whitelisted on this code lock.",
"StaticExtractorLockingBlocked": "Cannot place code locks on static resource extractors.",
"OnlyOwnerCanPlaceLocks": "Only the quarry's owner can place locks on it."
}
Developer Hooks
OnItemDeployed
This is an Oxide hook that triggers when a deployable item is placed on another entity. For compatibility with other plugins that utilize this hook, this plugin invokes it whenever a code lock is deployed on a quarry or pump jack.
void OnItemDeployed(Deployer deployerItem, MiningQuarry miningQuarry, CodeLock codeLock)
Screenshots
Credits
- Rewritten from scratch and maintained to present by VisEntities
- Originally created by Orange, up to version 1.2.1
MIT License
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.
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.