Sueta
PA

Padlocks - BETA

Beta 16

A protection plugin for all interactable materials

·Plugin

This is a BETA version. That means it is incomplete!

Welcome to Padlocks

I know I said this same thing when I released Universes, but this plugin is perhaps even more complex because of the way it uses events, and because it uses databases for information storage. So, what is Padlocks? Well, it is a protection plugin designed for protecting blocks that one can interact with. For example, you can protect chests and doors. You may also be wondering why I've decided to make the first release while still in the beta stages. Well, I've been working on this for the greater part of the last two months, and I think I've worked out all of the kinks in the storage system. I'd like people to try this out on their servers so it can be tested with a wider range of plugins to ensure there aren't any conflicts with events or anything else.
When you guys use it, I would really appreciate you all telling me if anything goes wrong with it and sending me error reports from the console if any related to the plugin should arise. With that in mind, let's get into what has been integrated and what is planned.

Current Integrated Features:
- chest protection
- trapped chest protection
- double chest protection
- door protection
Please note, doors can still be opened with any redstone activators (levers, buttons, pressure plates), so door protections can easily be overridden
- commands for locking, unlocking, and adding and removing members
- conversion between single chest and double chest protection on block placing and breaking (this is likely to have the most bugs. If glitches related to this occur, please tell me what happened and what caused it so I can emulate the event and fix it bug.)
- ability to chose between a local SQLite database and a remote MySQL database if you have one.
- a lock override for admins that grants them access to any lock. The owner of the lock will be notified upon the protected object being interacted with.

Planned Features:
- ability to protect levers, buttons, pressure plates, fence gates, signs, item frames, redstone, repeaters, comparators, pistons, and possibly other blocks
- ability to lock items via password
- ability to make garbage chests that will delete items put inside
- ability to prevent active redstone, repeaters, pistons, comparators, and powered rails from being broken. (No more accidentally breaking active circuits on accident.)
- ability to prevent protected items from being destroyed by creepers or TNT
- addition of a help command
- ability to transfer lock owners
- interaction logging to record information about who used an object and when. This information will be retrievable by the lock owner.
- automatic database updates on a timer (currently the database only updates on shutdown or reload. This means that if the server crashes, protections will be lost. This will likely be added in the next beta update.)
- (possible feature) ability to trap locked items with various commands

Just another side note, if any protected blocks are destroyed by an explosion, it is likely that there will still be a protection in that location. This will cause signifficant glitching as placing down a new chest will add another protection to that spot. it is recommended that if such a situation occurs, you place down a block of the same type and run the unlock command twice before relocking the block. This will ensure there are no duplicate protections in the file storage.

Now for the commands. There is currently no help command yet, so you may have to refer to this page.

/plock - This will prompt you to right click a block to protect it
/punlock - this will prompt you to right click a block to unlock it (this will also remove all members from the object)
/ paddmember <username> - this will prompt you to right click a protection you own to add a member
/premovemember <username> - this will prompt you to right click a protection you own to remove a member
/poverride - when enabled this will allow the player to open or use any locked object, whether or not they are the owner. A message will be sent to the owner of the protection, informing them that someone opened their chest with an override along with the name of that player.

Permissions:
Padlock.unlock - allows using /punlock
Padlock.addmember - allows using /paddmember
Padlock.removemember - allows using /premovemember
Padlock.lock - allows using /plock
Padlock.override - allows using /poverride
Padlock.* - Wildcard permission. Allows using all commands from the plugin

I think that's about it for now. Please send any bug reports to the discussion section here or to me on Discord at WhispTheFox#5879

Also, because this plugin is still in beta, I'd prefer you all not give any ratings. I liken it to film critics rating a Marvel film or something with unfinished CGI. It's not necessarily meant to be good yet. It's meant to ensure that things are functionally sound. Thanks.

Similar projects

Plugin →