Lockpick & Rent
Lockpick & Rent
This plugin adds new access features to areas protected by any protection plugin. You can open door (chest, levers, buttons...) with lockpicks, you can define free access, set the payment required to gain access. And you can even take daily rent for using doors, chests and other items. Lockpick-n-Rent was test with some plugin that provide protection: Towny, LWC, Lockette, Worlguard's regions and Road Protector; and I think it will work with any other "private" plugin.
Attention! Lockpick & Rent require any protection plugin installed on your server. Did not protects doors, chests... etc itself
I apologize for the lack of description of the plugin. I'm going to offer tutorial for you as soon as as I can.
Video
Servers using Lockpick&Rent
How to use it?
Just install it. After first execution config file will be created. You can edit it or setup plugin parameters by using command. And don't forget to configure player permssions.
Lockpicks...
There two kind of lockpicks: simple lockpick and advanced lockpick. By default gold hoe using as simple lockpick and diamond hoe is used as advanced lockpick. Each kind of lockpick is defined by parameters: Simple lockpick: chance - 10%, breaking step - 1%. Advanced lockpick: chance - 15%, breaking step - 10.
In addition both kind of lockpicks have a chance (default 30%) to be broken up to 1/3 of max item's durability.
If player is trying to pick the lock, and try is unsuccessful he will receive a damage (default - 6), and nearby players (default radius - 100) will receive warning message.
There is an additional permission, that increase chance to open locks and decrease chance of lockpick breaking (default - 10%).
...and Rents.
If you own a private (protected) area, you can define additional rules to access to any doors, chests, buttons, levers, furnaces... etc. Access to doors and other "switch-blocks" defined by special signs. There are some kind of access: free, limited (by player name or permission) and fee-access. For payments you can use any economy plugins supported by Vault with one limit: you can define only integer values as price for access. And you can define unlimited number of items as payment item (for example you can use gold, diamonds or... map with specified number).
Signs
There are twelve types of controls signs: [free], [day], [night], [access], [pay], [pay#<count>], [pass], [rent], [rented#<days>] , [protect], [player] and [sale]. All "control words" must placed in second line of sign. First line must contains owner name. Third line contains a price (for signs: [pay], [pay#xx], [rent], [rented#xx] and [sale]). Last line usually may contain anything you want, except signs [rented#xxx] and [player].
Additional information about signs
Permissions
Commands
Like this plugin?
You can buy me a chocolate!
I'm here for only the lockpick part of the plugin, how lightweight would this be?
Unfortunately all other lockpick plugins are horribly made, just needs a simple configuration like this one.
@rasnyderiii
Yep :)
@burntim69 At the moment it shows everyone connected that " (Playername) has sucessfully picked a lock a (location)" in the chat window
Aaaa.... You said every player connecting send a message about picking the lock??? Oh... I'm not sure that I understood you right.
There's two kind of broadcasting message. 1st: "clicking sound", message about someone tried to pick the lock. 2nd: success message. This message (about some one picked the lock) must receive only players with "mclpr.yabeda" permission.
@Raymanic I'll do it.
Does this work?
Sorry should have been a little more specific. When a player picks a lock the only players that I want it to show in chat are the ones that are within "range" as set in the config, or the Admins+. At the moment it shows everyone connected that " (Playername) has sucessfully picked a lock a (location)" in the chat window
Can you add something where it intergrates with chestshop, so shops ran by admins can be protected if theyre not adminshops.
@burntim69 This message is receiving players with mclpr.yabeda permission. Ops (by default) has this permission, but you can grant them a negative permission (^mclpr.yabeda - for bPermission system)
@LeChuuck
Yes it works with 1.2.5-RB4
Anyway to disable the message that comes up in the chat on a successful lockpick?
Does this plugin work with latest CB or need to be updated?
Will you update that plugin ?
@fromgate
No, the maximum rental period is fine for me. I want to know, is there a command that can change the duration of rent day?
For example when i rent the room for 2 days the sign says - [rented#2] And i change the config so the sign will change to [rented#1] when the 10 in-game hour will pass or the real 1 hour
@Mirmulniir /lpr cfg mrp={days} - maximum rental period, default - 14 days
How i can reduce the rent time?
Thank you :) I added an item through config file
@Mirmulniir
For adding payment item use command:
/lpr pi add <itemname>=<id>:<data>
and
/lpr pi add <itemname>=<id>
@Mirmulniir Rent will not be infinite.. It was a problem with infinite rents. But I was sure that it was fixed. I'll check it again. If chunk was unloaded it may leave the text on chunk, but it will update when you opening the door (trying to gain access) or clicking the sign.
And. Is rent continue for infinite time? I wait for 4 ingame days but the sign doesn't change, it keep saying that it's rented#1 by me
It works fine on 1.2.4 R1.0 But when i try to add an item to payment list nothing happens