[MECH] ChestLock v1.1 - Simple locking solution for Chests, Furnaces, and Doors [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Mar 23, 2011.

  1. Offline


    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    ChestLock - Simple locking solution for Chests, Furnaces, Dispensers, and Doors:
    Version: 1.1 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions
    Download Page

    1.) Create a chest
    2.) Punch it
    • Now you are the owner and the chest is locked!
    3.) Punch it again
    • Now the chest is unlocked!
    To Lock a Door:
    1.) Target the door and type "/lock"
    • The item in your hand is set as the key
    • Users can't open that door unless they have that type of item in their hand
    2.) Target the door and type "/lock" while holding nothing
    • You are set as the owner and the door cannot be locked
    • When a chest is locked noone can open it, (not even the owner)
    • When a chest is unlocked everyone can open it.
    Only the owner can unlock/lock a chest.
    • If a non-owner tries to, they will be told that it doesn't belong to them.
    • If an admin* tries to, they will be told who the owner is.
    • An admin* can however unlock a chest if he is holding dirt (configurable)
    Only the owner and admins* can destroy owned chests
    • In order to disown a chest a player must punch it with dirt (configurable)
    *admins are defined by having the permission node chestlock.admin (or isOp() if Permissions is not installed)

    • Simple lock/unlock
    • Lock Chests, Furnaces, Dispensers, and Doors
    • Configure which items unlock/own/disown
    • Add Coowners who can also lock/unlock
    • Add coowner "any" to allow anyone to lock/unlock
    • Make chests/doors unlockable so users can't claim them
    • Set certain keys to open doors.
    • Quick to make (no looking up confusing commands) Just Punch it!
    • Customization of messages
    • Uses iConomy, BOSEconomy or Essentials to charge users money for owning/locking
    • Permissions allow admin abilities
    • MultiWorld support
    • /coowner [Name] - Add [Name] as co-owner of target chest
    • /coowner any - Allow anyone to lock/unlock the target chest
    • /lock - Lock/Unlock target chest
    • /lock - Set item in hand as key to target door
    • /lock never - Make target chest/door unlockable (must be owner first)
    Permission Nodes:
    • chestlock.admin - defines user as an admin
    • chestlock.own
    • chestlock.lock
    • chestlock.unlockable
    • chestlock.coowner
    • chestlock.usekey
    • chestlock.free
    Review by JamesACosten:

    Tutorial By 0zyke:

    Other vid showing many other plugins by me:

    • Add iron door support
    • Add MySQL support *I give up trying to get this to work. If someone wants to help me I'd appreciate it
    Old Versions + ChangeLog can be found at Download Page
    Show Spoiler

    Version 1.1 (7/16/2011)
    • Fixed locking chests with /lock
    • Added lock cost
    • Added color support for all customizable messages
    Version 1.0 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Added iron door support
    Version 0.9.1 (6/13/2011)
    • Fixed chest unlocking
    • Fixed door locking
    Version 0.9 (6/12/2011)
    • Cleaned up code/fixed errors
    • Added option of save file cleanup
    Version 0.8.4 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 0.8.3 (6/3/2011)
    • Various fixes and code cleanup
    Version 0.8.2 (6/3/2011)
    • Added Essentials econ support
    • Added option of explosion protection
    • Fixed block break throwing errors
    Version 0.8.1 (5/4/2011)
    • Updated to iConomy 5
    • Few various fixes
    Version 0.8 (4/29/2011)
    • Added many permissions nodes
    • Added customization of messages
    • Added iConomy support
    • Added global key for Admins
    Version 0.7 (4/15/2011)
    • Added support for Furnaces, Dispensers, and Doors
    • Fixed coowners
    • Added option for coowner "any" to allow anyone to lock/unlock
    • Added option to make chests/doors unlockable so users can't claim them
    • Added option to set certain keys to open doors.
    • Improved save system (no more erased data)
    • Improved multiworld support
    • Fixed all known bugs
    Version 0.6.3 (4/2/2011)
    • Fixed chests being broken by anyone
    Version 0.6.2 (3/31/2011)
    • Few minor fixes
    • Works with build #612
    Version 0.6.1 (3/31/2011)
    • Added option of setting lock tool to "any"
    Version 0.6 (3/30/2011)
    • Updated to craftbukkit build #602
    Version 0.5 (3/25/2011)
    • Various fixes
    • Sand set as default Admin disown tool
    Version 0.4 (3/24/2011)
    • Fixed double chests
    • Changed admin info to to Air by default (dirt is set to toggle lock)
    Version 0.3 (3/24/2011)
    • Fixed double chests
    • Added disown on break
    • Added config to define tools
    • Added commands for coowners and to toggle lock
    Version 0.2 (3/24/2011)
    • Added disown with dirt
    • Added admin open with dirt
    • Added isOp() if permissions is not present
    Version 0.1 (3/23/2011)
    • Initial Release
    migato, GameFreakDude and Sefragus129 like this.
  2. Offline


    Update to [1060] please
  3. Offline


    I am having the Reload issue occasionally with CB1060. Also the /lock never doesn't seem to work, I have to do /lock twice on a door to make it unlockable.

    Great plugin , maybe add a /lock reload to reload the plugin manually if needed?
  4. Offline


    To dos that would be cool...

    /lock <name> to organized locked items
    /locklist (Displays a list of player's locked items, and key)

    Locked Item:____ |Key:_______
    Door: <name>___ |Feather
    Chest: <name> __ |N/A

    /ownerlist (Displays the owner and coowners of the door.)

    /lock area (Would almost make this a zoning plugin too. Would give players the opertunity to lock certain areas for them and their friends. This though, I'd say make Op/Admin ONLY.)

    Hope I've helped :)
  5. Offline


    If you put a redtone toach behind the locked door nothing happens but if you remove it the door opens without a key.
    please fix that :) but well done
  6. Offline


    Great Idea, I'll try to make it so different permission groups can own various amounts of chests. This would require me to rewrite the entire way I store the data so it might be a little bit.

    I don't see the benefits of /lock <name>
    I'll try to add /locklist with location information (and key)
    /ownerlist is a great idea
    About /lock area, I am trying to stay away from coding area protection sorry.
  7. Offline



    I`ve got 1 Problem with the chestlock v1.1.

    If i restart the Server all locks are gone, all users must relock doors,chests....

    Did i have an Problem in my config file?

    Nice greets
  8. Offline


    check for a load error...
  9. Offline


    So for whatever reason, at random spots in the world, it won't lock anything and chests won't lock. For instance, when I try to lock a door, it comes up with the help message for Chestlock. Yet when I go to lock a door on another building, it'll lock. Chests work there as well.

    EDIT: Even reloading the plugin and reinstalling didn't work.
  10. Offline


    restarting the server should fix it, this is a problem with bukkit not my plugin...
  11. Offline


    I have the same problem! And it gives load errors..

    [SEVERE] [Chestlock] Saving turned off to prevent loss of data
    [SEVERE] [Chestlock] Invalid blocktype for "usernames";"my world name";"the coordinates"

    EDIT: fixed it! When updating my server to 1.8 i kept the old files and at those coordinates (i made a new map with the same name -_-) isnt a chest anymore. I just removed the info from the chestlock.save file...
  12. Offline


    on a door, instead of doing "/lock never" you are suppose to just do "/lock" while holding nothing
  13. Offline


    Sorry I have stopped using your plugin as it seems to stop working for protecting chests randomly, doors and commands still worked but all the chests locks and protection stopped.. Reloads do it so we have been avoiding do that and only doing full stops and starts. I kept getting invalid block types in the list somehow, and was a pain to clean out of the config. The bad locations were always near chests but one or two blocks away.

    Things that might be related to the issues.
    Some of them may have been broken and restored by Big Brother roll back, but I cannot confirm this.
    There might be an McMMO ability that broke the chest as we have that installed.
    We encountered a direct conflict with Runecraft's ?Zerix's? chest spell.
    Reload would still break chest locking ability even if all invalids blocks being ignore to protect data were fixed.
    Never got around to testing furnaces and dispensers.

    Sorry, I could never find any errors on the console in relation to these issues, but I hope that you continue to improve this plugin as I think it is still the most intuitive and full featured locking plugin available.
  14. Offline

    Alex Berndt

    This plugin is really cool but please update it, I'm constantly loosing the lock-ed/owned state of the chests, server start-up is showing:

    >10:06:13 [SEVERE] [ChestLock] Saving turned off to prevent loss of data
    >10:06:13 [INFO] ChestLock 1.1 is enabled!
  15. Offline


    In the config you can set AutoDelete to true which will prevent that from showing up anymore.

    An update is on the way, hopefully once I get home from work today.

    Dev Build.
    http://dl.dropbox.com/u/23866327/Plugins/Test Jars/ChestLock.jar
    have not had time to do much testing at all (could use some help)
    Group CoOwners, and limiting the number of chests a Player can own needs to be tested
    be cautious using it...
    http://dl.dropbox.com/u/23866327/Plugins/Test Jars/Permissions.txt
    This is the updated Permission nodes (PermissionsEx) for all my plugins.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
    Alex Berndt likes this.
  16. Offline


    Thank you for updating :) I've been waiting for this for a long time now. Could you please add "æ,ø,å" support? I don't get any errors but when I use them in the messages they dissapear.
  17. Offline


    I can look into it but they must not be in the alphabet used for properties files. So I proly won't be able to support them without using special codes (like <ae> <o> <a>)
    AndyBay likes this.
  18. Offline


    Great! The important thing is that they work, not what I have to do to make them work. Formatting to UTF-8 is what I normally do.
  19. Offline


    AndyBay likes this.
  20. Offline


  21. Offline


    Do I need anything further than the plugin itself? I havent installed Permissions or any similiar plugin.
    I cant seem to get the coOwner-functionality to work. Everytime I add one, he isnt listed when I type /lock list owner.
    I've downloaded the latest developer-version (the one on the first page causes many errors in console).
  22. Offline


    There must be a bug in the coowner command... I'll check it out.
    AVirusC and dmtree like this.
  23. Offline


  24. Offline


    when will there be an update?
  25. Offline


  26. Offline


    Maybe this has been issued before, but I'm running a 1.8 minecraft bukkit server, and after I restart it, the keys are not saved.
    Can you help me?
  27. Offline


    look for an error while loading, You can try setting AutoDelete to true in the config to fix it.
  28. Is there any chance you can edit the message from 'Notice: That private chest is locked by you' to something if you are making it a public chest?
  29. Offline


    Thank you very much! It worked.
  30. Offline


    Hej are you going to update your plugin?
  31. Offline


    it is currently stable for the recommended build

Share This Page