SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedBuilding & decoration

Lock & Key

by dumptruckman · for Minecraft

Lock your doors and chests and make keys that open them up

2.6KDownloads
9 yr agoLast updated
Spigot · PaperLoaders
1.12Latest game version

About Lock & Key

From SpigotMC

Lock your doors and chests and make keys that open them up

A plugin for adding block use protection to your server that doesn't involve signs or other silly nonsense like that. Instead, Lock & Key offers the ability for the server admin to sell access to the protection in any way they see fit!

Lock & Key was not originally planned to be a public plugin but I have decided to release it out in the open after all. However, this plugin is not for the public. It is primarily for my own use. As such, any development done on it, including fixing things or adding new features will only be done if I see value in having it for my own use.
That said, you're more than welcome to submit a pull request to fix or add features.

News
Lock & Key is now in beta. Most of the kinks have been worked out and the plugin seems to be working pretty well.

Features

  • New crafting recipe for chests, doors, trapdoors, buttons, levers, fence gates, and pressure plates that can only be used by the owner or key holders.
  • No signs or commands required - it just works!
  • Crafting recipe requires unique material that cannot be acquired naturally (allowing the server to control the flow by whatever means they desire.)
  • Keys are also not naturally acquirable.
  • Can have multiple keys to the same block and/or multiple blocks using the same key.
  • Keys are just like any other item and drop on death.
  • (Planned) Lockpicking minigame!
  • (Planned) Upgradable locks (to make lockpicking harder)

Installation
Like most plugins, just drop the jar into your plugin folder and start your server.
Note: The latest version of this plugin will only work on MC 1.9.

Usage
First you need some Sealing Dust (a custom version of redstone) which is acquired through the command /givedust [amount] [-p <player>].
Then you need a door, button, pressure plate, fence gate, lever, trapdoor, or chest.
Just put them into a crafting bench like so:
[​IMG]

And the result will be a Locked ... Thing.
When the user places the locked item the resulting block can only be used by that player, those with an appropriate key item, and those with the lockandkey.bypass.locks permission.

When you want your friends to be able to use your doors and such, you need to give them a key. Keys are acquired through the command /givekey [amount] [-p <player>].
A Blank Key must be cut to fit the lock on a block. To cut a Blank Key simply crouch and right click on the locked block. This process will transform the item into a Key that will let anyone holding it use the block normally.

Commands
/givedust [amount] [-p <player>] - gives the user (or the player specified) a single (or specified amount) Sealing Dust.
/givekey [amount] [-p <player>] - gives the user (or the player specified) a single (or specified amount) Blank Key.
/givelock [<type> [amount] [-p <player>]] - gives the user (or the player specified) a single (or specified amount) locked block of the specified type. Using the command with no arguments will list the types of blocks available.
There are other commands available for this plugin that you can see by typing /lak

Permissions
lockandkey.cmd.givelock (default: op) - allows use of givelock command.
lockandkey.cmd.givedust (default: op) - allows use of givedust command.
lockandkey.cmd.givekey (default: op) - allows use of givekey command.
lockandkey.bypass.locks (default: false) - allows bypassing locks.
lockandkey.openownlocks (default: true) - allows players to not need a key to open their own locks.

Highlights

From source data

Game versions

Supports 4 Minecraft versions, the newest being 1.12.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

Lock & Key on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 1.5 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.8-beta, released 2017-09-01

Game versions by loader

LoaderGame versionsNewest
Paper1.9 to 1.12 (4 versions)1.12
Spigot1.9 to 1.12 (4 versions)1.12

From 9 recorded builds of Lock & Key.

Recent builds

BuildReleasedGame versionsLoaders
0.8-beta2017-09-011.9 to 1.12 (4 versions)Spigot, Paper
0.7-beta2017-06-09n/aSpigot, Paper
0.6-beta2017-01-19n/aSpigot, Paper
0.5-beta2016-04-07n/aSpigot, Paper
0.4-beta2016-03-03n/aSpigot, Paper
0.4-SNAPSHOT2016-03-03n/aSpigot, Paper

Run Lock & Key on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Plugins”

Building & decoration

Blocks, furniture, decorations and building tools.

Runs on your server

From source side support

SpigotMC lists Lock & Key as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.12 and 3 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-16Open ↗
  • ✓Authordumptruckman, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

Lock & Key, answered

Generated from the mod’s own source data.

Do my players need to install Lock & Key?

SpigotMC lists Lock & Key as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. Lock & Key is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Lock & Key on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add Lock & Key in one click.