Allow Lockpicking
DeathlyIceDragon will now be maintaining this plugin.
Introduction
This plugin adds the ability to pick doors, chests, furnaces, trapdoors, fence gates and dispensers with a "lock-pick" item. This plugin will not lock any of these items - it just provides players with a method to circumvent them.
In Game Usage
Players just need to be holding the lock-pick item in their hand and right click on a chest or a door to try to pick the lock. If the pick is successful, the door or chest will open.
Features
- Should work with any locking plugin (tested with LWC, Lockette, BukkitInventoryTools, Deadbolt)
- Supports permissions (allowlockpicking.canpick) - defaults to ops
- Configurable lock-pick item (allows multiple lock-picks)
- Configurable messages
- Configurable chance of success
- Option to lose lock-pick on use or just failure
- Configurable damage dealt on failure
- Teleport player to a location on failure (like Jail)
- Run a command automatically on failure (like /report)
Known Bugs
- Does not prevent other locking plugins from displaying their messages if something is supposed to be locked but the user bypasses it.
Installation
Download the jar and place the plugin into your folder. Run the server to generate the files that will let you configure the plugin.
Commands / Permissions
A list of all commands and their permissions can be found here.
Configuration
Information about the configuration files can be viewed here.
Change Log
The full change log can be found here.
If you're upgrading from pre 2.0, you will need to reconfigure the plugin
v2.5
- Removed Spout Support
- Removed Towny Support
- Removed Bukkit Inventory tools Support
v2.3
- Fixed minor errors reported
- Updated compatibility with ChestShop and hopefully LWC
v2.1
- Added ability to prevent things inside towns from being picked (with Towny)
- Fixed error with ChestShops being null
v2.0
- If you are upgrading to this version, I recommend you delete your config because you will need to reconfigure everything.
- Major upgrade to the plugin, view the full change log for all of the changes.
@nighteyes604
I think it would be best if it was always on.
When factions raid each other, they kill enemy players and claim their land in order to get into their base. If LWC chests are in this raided land, in the current state of the plugin, they will not be lockpickable because the chests would be in the raider's new land, and if they unclaim the land to wilderness the chests would not be lockpickable either. This is why I think players should always be able to lockpick in wilderness.
Thanks.
@jigga_jones
The plugin should now work with BukkitInventoryTools - but let me know if there are any errors, still new at hooking into other plugins.
@Rumsfield
Just uploaded another new version where it should work in the wilderness.
Thank you so much for adding my suggestion, I really appreciate it. There is still one issue preventing us from using this plugin on our server however. I tested it out, and it seems that players cannot lockpick in their own territory, nor in wilderness. The first part is great, except I was wondering if you could add functionality to allow lockpicking in wilderness too.
Thanks!
@jigga_jones
Now that I know how to hook into other plugins, I'll see if I can get that working either sometime tonight or tomorrow.
anyword on it working with bukkitinventorytools ?
@Rumsfield
Just uploaded a version with the changes you requested. The plugin now hooks into Factions, and if the chest is something they would normally be able to open (if they're in the same Faction or I think allied faction) and you set friendly picking to false - they will not be able to pick the chest.
@Rumsfield
Yeah I'll look into adding this tomorrow and see what I can come up with :)
I have a suggestion.
We put this plugin on our Factions server, however there were too many griefing problems with players lockpicking into their fellow faction member's chests.
Could you possibly make it an option in the config to not allow players to lockpick chests in their own faction territory? To elaborate, the plugin would check if the chest (or any lockpickable item) is in claimed faction land, then check if the lockpicker is a member of that faction land, and if that player is, then he/she will not be allowed to lockpick the target. They would however be able to lockpick inside any other faction territory or wilderness.
Thank you for creating this plugin, functionally, it works great. This setback however is preventing us from using it on our server.
@center66ljk
@jigga_jones
It does work with factions, except the same problem that factions will still display a "Locked" message. I can try to make it compatible with bukkitinventorytools but I don't know anything about Spout :\
Also I'll be busy for the next few days, so I'll post my code and see if someone can help since I won't be able to update.
Does this work with Factions? If not you should implement it.
Would it be possible to make compatible with bukkitinventorytools? also in future anyplans to add spout option maybe custom lockpick item
@Shooty_
Just uploaded v0.6 allowing you to set custom messages, tomorrow I'll work on letting you display the number of seconds left in the cooldown.
@nighteyes604
Can you ad a custom message (we can change the message in the config file) for cooldown on failure "You have fail, wait % secondes" ? And when player try to open the chest again between the cooldown the plugin say to him "Wait custom message between failure" each time he right click ?
@kahlilnc
I'll check and edit this comment to let you know.
Edit: Yes it does work, except the problem that the error message from the locking plugin still displays (in Deadbolt's case it says "Deadbolt: Access denied") :\ trying to figure out how to stop that still.
Does this work with deadbolt? :O
@nighteyes604
Can't wait :D
@monsterkiller54
Yup, I'll add that. I plan on updating it tonight for support with multiple lock picks, a cool down on picking locks if you fail, and a command to reload the plugin but I need to test it first.
can you make this so people with out permissions plugins can have the players 'not ops' uses this plugin?
@Shooty_
Working on adding this now, also support for multiple lock picks with different options.
@nighteyes604
Oh thanks :) !
Can you add settable time before a player can retry to lockpick if he fail the lockpicking ?