Lock & Key

Lock & Key

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 brand new and still in alpha (as in, it is not feature complete nor extensively tested.)

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. Requires Java 8 Requires Spigot 1.9 for the beta version!

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: Lock crafting

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.

More Info

Please visit the Spigot plugin page for more up to date information.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files