[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

    Codisimus

    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)

    Features:
    • 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
    Commands:
    • /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:


    ToDo:
    • 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
    Changelog:
    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

    PowerSet

    Doors work great, been waiting for this. Any possiblity of adding the functionality to levers or buttons to make for even more secure iron doors?


    Also, is there a chance to add either something to the properties file, or a command to choose what items are lockable? I love chests and doors, but I feel having furnaces and dispensers might be something I'd rather have disabled.

    Either way though, still my favorite plugin to have!
     
  3. Offline

    Codisimus

    umm havent thought of it. but im working on adding redstone capabilities... Ill keep this in mind
     
  4. Offline

    PowerSet

    Actually it seems to be working okay at the moment. But I'm noticing that at random some chests will just act like the plugin doesn't exist. I'll go to an area and the chests will just leave them all unlocked and not allow me to lock or unlock, or claim etc. then I'll go somewhere else and chests will be working fine there, and go back and they'll work in the original place again.
     
  5. Offline

    Codisimus

    its an issue with that chunk, restart the server and it should would fine
     
  6. Offline

    PowerSet

    With several chunks on and off in various locations? I would imagine it would be constantly not-working if it was a chunk issue, no? Either way I'll give a restart a try.
     
  7. Offline

    Lifeblood

    Ever since the minecraft patch anyone can access any chest regardless of locked status. messages are still displayed correctly but access is not limited.
     
  8. Offline

    Codisimus

    hmm idk wut that could be... would i be able to get on your server to check it out? your using the latest version right?
     
  9. Offline

    PowerSet

    You don't by chance have RuneCraft installed on the server do you? I know 1.4_01 locked chests appear to be working fine, but in the past, with RuneCraft installed it would say that chests were locked, but still allow anyone to access their contents. If you could, the easiest thing would probably be to start up the server with no plugins but chestlock running, and adding in one plugin at a time until it stops working to see where(if it is) the conflict is.

    Keep us updated so we know what not to use too =P
     
  10. Offline

    dortan

    I used the command /Chest Never on some of my chest and it worked all right.
    Today I restarted my server for maintenance and when I got back in, the chest that were supose to be unlockable were all locked.
     
  11. Offline

    Codisimus

    the command is /chest lock never (all lowercase) but ill do sum tests
     
  12. Offline

    DeeLaYz

    Hello. Why can't i destroy my own chest on my own server?
     
  13. Offline

    Raptor2213

    CB 277, ChestLock 0.7

    If a player breaks a chest, the server will crash with a Java Exception. Furthermore, the /commands were not working with full permissions ( - '*' )
     
  14. Offline

    LucidLethargy

    Love this plugin!
    Please add a permission node for the punch-to-lock feature, however, as I simply have no interest in it (we use LWC!)

    I primarily just use the key locks as that is just downright awesome :) I'm sure i'm not alone!
     
  15. Offline

    DimsenJonas

    Ehm, i can just open the door by redstone?
     
  16. Offline

    Jimmy

    Show Spoiler
    [INFO] Invalid blocktype, Check world names
    [INFO] Saving turned off to prevent loss of data
    [INFO] Invalid blocktype, Check world names
    [INFO] Saving turned off to prevent loss of data
    [INFO] Invalid blocktype, Check world names
    [INFO] Saving turned off to prevent loss of data
    [INFO] Invalid blocktype, Check world names
    [INFO] Saving turned off to prevent loss of data

    Help please :(
     
  17. Offline

    Codisimus

    it seems your using an old version...
    however post your .save file and let me know if you have more than one world, if you recently rolled back or edited your world, and if this happened right after updating
     
  18. Offline

    Jimmy

    I'm using Chestlock v0.7..
    I am using the NetherGate v0.55 plugin that uses Persistence. v0.76. So I have a nethers world and the original world running at the same time. I do rollback my world sometimes by overwriting the world files with backup world files.

    EDIT:
    FIXED. I. just erased my save file.
     
  19. Offline

    Codisimus

    When i release the new version it will support Nether
     
    Jimmy likes this.
  20. Offline

    Jimmy

    Okay. Thank you!
     
  21. Offline

    DeeLaYz

    Please add more permissions, like
    chestlock.door.lock - Let you lock a door so you need a specific key to open it
    chestlock.door.unlock - Let you unlock a door so you don't need a specific key to open it
    chestlock.door.use - Let you open a door with the key

    Please add these permissions because i really need them on my server. I will give admins " chestlock.door.* " and normal players " chestlock.door.use ". And please make so admins can destroy there own chests.

    Thank you.
     
  22. Offline

    Codisimus

    I already added tons of permission nodes which will be in the next update
     
    DeeLaYz likes this.
  23. Offline

    DeeLaYz

    Good :D .
     
  24. Offline

    danishdragon

    Thanks alot for a very simple and nice plugin, but I got a small request :)

    Is it possible you can make the door lock work on half doors as well? (ID is 64).
    It would be very handy - since i'm using half doors for some of my shops, where the half doors are the way to get behind the counter.
     
  25. Offline

    Codisimus

    I'm not looking at it now but the wayy the code is written it should work on half doors too. Have you tested it?
     
  26. Offline

    danishdragon

    Aha, it works, it seems like I was targetting it wrong... How do you actually have to target it?
     
  27. Offline

    Codisimus

    targeting doesn't work sometimes if you're too close for sum reason
     
  28. Offline

    danishdragon

    How do you remove a door after it has been locked once?
     
  29. Offline

    Afforess

    @Codisimus

    Other plugins can not detect whether chests are locked or not because ChestLockSaveLoad is protected. Could you change it to a public class? Or alternatively, provide plugins a way to access the API safely.
     
  30. Offline

    Neon_Bible

    Good job on the plugin!

    also, sorry for saying that you're plugin was incopatible with runecraft,

    runecraft was broken, as always :p

    eheh, cheers
     
  31. Offline

    peas

    Does this make all chests lock on a logout or server restart? I have a protected town with a chest shop and I cant be having all the chests lock all the time :/

    any clue on this??

    a way to keep chests from auto-locking

    or maybe even a way to make certain chests unownable? would really appreciate it

    other than that, love the mod..tho the update is givin me troubles

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

Share This Page