Deadbolt
Features
- No databases. In-game signs only.
- Super permissions support ONLY.
- Protects any type of furnace, dispenser, chest, door, trapdoor, cauldron, enchantment table, or brewing stand.
- Broadcast specific admin actions to those with "deadbolt.broadcast.xxx"
- Denies explosions, pistons, and redstone from circumventing protection
- Timed doors, [Timer:#], that toggle after a certain delay
- Server-wide protected blocks, use [Everyone] on line 3 or 4
- Modular plugin hooking system, add your own easily
- Compatible with Lockette
- Optional sign coloring
- Localization support
Notes
As this is a Lockette-type plugin, also similar to Alerter or BlockLock, things may seem similar. This plugin was originally created as a continuation of Lockette by Acru to add trapdoor support and other recent developments. Portions of this project were reverse engineered from Lockette and the original idea for a sign-based locking system still belongs with Acru. Credit where credit is due. As this only supports super permissions, if you need a plugin that is more backwards compatible with older configurations, you may want to look at Lockette.
If you have another plugin such as Cenotaph or ChestShop3 that you have integrated with Lockette and would rather use Deadbolt instead, I have created a LocketteSimulator that will allow you to use Deadbolt.
Check GitHub for the most recent files, there is a slight delay in getting files posted here authorized by the staff.
Usage
Place a sign next to the item you want to protect and type in the following
- Line 1: [Private]
- Line 2: Your name will be automatically filled, users with "deadbolt.admin.create" can specify someone else.
- Lines 3 and 4: You have a couple options for these lines
- Another player's name
- Unrestricted access via [Everyone] while preventing breaking
- Create an automatic timed door using [Timer:1] through [Timer:9]
Not enough room for all the names you need? Make another sign with the [More Users] on line 1
For ease of use in maintaining your signs without having to break them:
- Right click the sign to select it.
- Use "/deadbolt <line number> <text>" to directly modify that line.
When placing signs, valid locations are to the NORTH, SOUTH, EAST, and WEST of the target block.
Other valid blocks include:
- Doors: The blocks above and below.
- Trapdoors: The block that it is attached to (hinge-block) and directly above/below the trapdoor itself.
- Fence gates: Any block horizontally adjacent to the gate itself.
Use your imagination and hide those unsightly signs under walls.
Also, color is now available! Just add "deadbolt.user.color" and use &1-9,a-f in your sign.
Permissions
Configuration
Developer's Corner
DeadboltListener is a new system designed to incorporate your favorite plugin directly into Deadbolt.
To create your own or to view Deadbolt's static API, head over to the Developer's Corner
Currently available for download
- PermissionsBukkit, PermissionsEx, bPermissions, GroupManager
[GroupName]
- SimpleClans
[ClanName] [ClanTag]
- Towny
[TownName] [NationName] (All residents) +TownName+ +NationName+ (Assistant/Mayor only) 4 Config options: mayor,assistant,wilderness overrides.
Localizations
Have a completed localization? Drop me a link to it and Ill add it to the repository.
Once added, it is available for automatic downloading by changing the "language" setting in config.yml.
Available:
Issues?
The following issues are known:
- Double timer doors are broken
- Force coloring of Signs placed directly onto walls is broken.
- Vertical trapdoor chaining has been removed because it was only half implemented
Visit github and open an new issue.
Alternatively, try and find me at play.arkcraft.net.
@XeonG8
How did you resolve protecting existing deadbolt chests when you switched over?
@Acru_Jovian
Good point, lockette is now flavor of the month sign protection plugin :D .. I've moved back.
@Acru_Jovian
Will lockette be able to import or use my deadbolt database? What am i suppose to do with everyones deadbolted chest if i switch?
@omgitsmit
Ya could switch to Lockette~ It has always been fine with long names. >.>
Please, please, please fix the truncation of long names!
Can't we just roll back this update? -> 67ceba0
Will be updated the towny's bridge? i would like to use that feature.
Please fix long names!
@md_5
Mmm yes it is, the latest download have the expire thing on.
Also there's a problem with default permissions i think. I will make a ticket.
Edit: It was one allready, i left a comment explaining more about the issue:
https://github.com/daemitus/Deadbolt/issues/55
I hope you're also working on a fix for the players with long names :(
@Robert107
Thats the new Config Im working on, its not actually in the version oyu are using, just add the line and set it to 0, the new one will auto update
@Melonking
@Enrux
I think he can't see that option cause the config file is not auto-updated.
In the sourcecode i found this:
@ConfigComment("Protections will auto-expire if the player is offline for X days. 0 means never expire.") public int auto_expire_days;
So i think the property must be:
auto_expire_days: 0
In your case.
@Enrux
Yes its the second line in the config. Set days to 0
Is there any way to disable that when user for 20 days has not been online their chest can be opened????
@callmejordy265
It does, just don't give them the break permission.
I really wish this had the option to deny admin breaking and such
@daemitus
Hey man, people with long names doesn't seem to work, can you just remove the color support for linetext 2 - 3 - 4 and having color on the [Private] etc is just fine but for the names is not.
2012-03-09 04:14:03 [SEVERE] Could not pass event BlockPlaceEvent to ChestShop org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441) at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:90) at net.minecraft.server.ItemBlock.interactWith(ItemBlock.java:71) at net.minecraft.server.ItemStack.placeItem(ItemStack.java:83) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:301) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634) at net.minecraft.server.Packet15Place.handle(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NoSuchMethodError: com.daemitus.deadbolt.Deadbolt.getAllNames(Lorg/bukkit/block/Block;)Ljava/util/List; at com.Acrobot.ChestShop.Protection.Plugins.DeadboltPlugin.canAccess(DeadboltPlugin.java:20) at com.Acrobot.ChestShop.Protection.Security.canAccess(Security.java:28) at com.Acrobot.ChestShop.Listeners.blockPlace.onBlockPlace(blockPlace.java:34) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 14 more
Players with long names make the sign and it cuts off the last few letters, obviously where the sign isn't long enough. But it then says "protection expired" and i believe anyone can access the chests...
[BUG] Players that have 15+ Letters in their username have trouble accessing the locked item after the place the sign on it. I would have to fiddle around with it by breaking the sign and getting them to replace it again. Even after that, They can only access the chest for a certain amount of time. He/she can't even break their own sign if they can't open it.
Long story short, People who have their names cut off on the end of the sign will have trouble accessing the locked item. Please fix. This plays a major role in my server, Thanks!
It's could be me being really stupid, but I can't get the towny addon to work. I tried placing it in /plugins and placing it in /plugins/deadbolt/listeners.