This release also adds the ability to create one-time-use keys that are removed on use. The config.yml option padlock.one_time_key may be set to a string that will be checked against the key name used on a locked chest. For example if padlock.one_time_key: 'Treasure' is set in the config.yml, and chest that is locked that has 'Treasure' in it's name will have the key removed and chest unlocked when the key is used. This is useful if you want to populate chests with hidden keys on a map.
This version is a Beta Release. Please do not install on a production server before testing and understanding the risks.
As always, please make a backup of your data before installing.
This release specifically supports 1.13.x. Some features are changed from the 1.12.x version, specifically, the permission for reloading is padlock.reload, instead of padlock.admin, and padlock indicators support was removed, since they really didn't work well. Also, only chests and trapped-chests are supported for locking in order to make the plugin more portable with 1.13.x and future versions.
This release removes all CraftBukkit and NMS code and implemented functionality using built-in container locking mechanism in Minecraft 1.12 in order to provide portability and better block logger support. As a result, support for earlier Minecraft versions was removed as well as support for non-container blocks such as Doors, Trap Doors and Gates was removed.
Update Notes:
If you are upgrading the locks on all the containers will be lost, however a method for importing from the existing padlock dat files using /padlock import command is implemented, although not fully tested.
Fixed design issue since lock metadata for blocks are not saved on restart. New approach saves padlock settings information to a data file.
Updated support for 1.8 through 1.12.2. Tested on 1.12.2 (Others should work).
Note: This plugin uses NMS for getting and setting the chest name with information about the status of the padlock.
Chest name no longer says "Locked Chest" but uses a red square in front of the chest name, so as not to interfere with custom chest names.
Support for locking Chests, Double Chests, Furnaces, Dispensers, Droppers, Hoppers, Brewing Stands, Beacons, Jukeboxes, Doors and Gates.
Chests and Blocks may not be broken unless unlocked first.
Hoppers may not be placed under or into locked chests unless chest is unlocked or player is holding key (depending on mode).
Keymode can be set in config.yml to hand, inventory or unlocked. Hand means you must have key in hand to open a locked chest. Inventory means it must be in your inventory. Unlocked means you can only open an unlocked chest.
Hopper flow is enabled on locked chests by default. Can be disabled in the config.yml.