When having the permission, players can attach a keylock or codelock to a minicopter or scraptransporthelicopter when having one in their inventory or having the resources according to the blueprint to craft one (unless the cost is set as free in the configuration) as long as the minicopter has no passengers.Keys can be created and must be in the player's inventory to be able to fly.There is a cooldown according to the blueprint crafting time for executing the command.
Any player can mount the minicopter when it's unlocked.Authorized players, meaning players with a key or knowing the code, can always mount.Other players can - when it's locked - only mount when there's already an authorized player on it and will be automatically kicked off when the authorized player gets off.Players get also kicked off when the lock gets locked or when the code is being changed.A driver can kick others (also team mates).
The fuel tank cannot be looted by an unauthorized player when the minicopter is locked.
Unauthorized people cannot push a locked minicopter.
The sound effect can be turned off or on in the configuration file.
Permissions
minicopterlock.usekeylock- allows players to be able to add a key lockminicopterlock.usecodelock- allows players to be able to add a code lockminicopterlock.kick- allows a driver to kick passengers
Chat Commands
/lockmini.key/lockitkey- lock whith a key lock when looking at heli/lockmini.code/lockit.code- lock with a code lock when looking at heli/heli.kick- used by driver to kick passengers (including teammates)
Console Commands
/heli.kick- used by driver to kick passengers (including teammates)
Configuration
{
"Sound Effects": true,
"Locks Are Free": false
}



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.

