[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

    Codisimus

    did you copy the config file over too? im not sure why it would work on one and not the other... you sure you grabbed the right chestlock jar?
     
  3. Offline

    Odjit

    Yep and yep >_<
    First I copied both the jar and the folder with the config from the test server. Threw the error.
    Then I deleted the config folder to let it generate a new one, and restarted the server after it had. Still threw the error.
    Then I downloaded a fresh chestlock and did it again, and still threw the error.


    But works fine on the test server, no error, and changes to the config work fine.

    The only different between the two being the main server is on linux, and the test server is on a Windows7 machine.
     
  4. Offline

    Codisimus

    i run windows 7 so i cant test on a linux... is the config file it creates the exact same on both servers?

    i was trying to load the config file from plugins/chestlock instead of plugins/ChestLock (linux is CaSe sEnsiTive while windows is not)
    anyway redownload v0.5 and it should work

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

    Odjit

    Actually what looks to be happening is its not generating a config file on the linux machine.


    Edit: and yes! It works now <333
     
  6. Offline

    Codisimus

    actually i had the case sensitivity screwed up for making the file... did you try the new version?
     
  7. Offline

    Odjit

    Yes, that was what the edit was about, the new version fixed it. Yaaaaaaaaaay.
     
  8. Offline

    Codisimus

  9. Offline

    Odjit

    So, testing it out on my SMP server, and it works for the most part but an interesting issue popped up.

    We're in this one blokes house and we can claim some chests, but not others. They are arranged in a square room, with the chests on the floor along all of the walls. I'm wondering if it has to do with chests across already being claimed or some coordinate issue, but I could crazy.

    If you wanna come look:
    Server IP (open)
    jadon.ath.cx
     
  10. Offline

    Codisimus

    in case other people come across this error it was an issue with one of the chunks and a sever reset seemed to fix it
     
  11. Offline

    dak393

    @Codisimus You sir are amazing, another plugin?! and constant updates and support? I think its too good to be true. Not to mention the fact that you listen to your users suggestions and support. Well I think I'll have to download this one too :) could you also add a permissions node for who can use it? Thanks :D
     
  12. Offline

    Codisimus

    sure thing, ill do it tonight (after work)
     
  13. Offline

    Odjit

    Just wondering if you've thought about doing mySQL support for the chests- my chestlock save file after not even 24hrs is already 1.35 GB.
    Did a save and a reload, and the save file kept timing the server out and had to delete it :(
     
  14. Offline

    Codisimus

    This is due to a glitch in saving the coowners I should be able to fix it tonight
     
  15. Offline

    Odjit

    Had another 'dead zone' chunk on claiming chests again :(
     
  16. Offline

    Codisimus

    i have no idea why that would be happening...

    Would you prefer mySQL or SQLite?

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

    Odjit

    SQLite tends to have problems. mySQL handles the sort of load we have to deal with much better.
     
  18. Offline

    Codisimus

    mySQL it is then
     
  19. Offline

    dak393

    Agreed :)
     
  20. Offline

    Infernus

    Well I can imagine a configuration file growing so big if you save the player and not the playername in case you did this.
     
  21. Offline

    Codisimus

    It saves right the first time but between the save and load cycle sumthing goes wrong with the coowners... first time it makes the coowner a coowner for every chest. second cycle it says the coowners name about a hundred times... not sure if I should fix it to still support flat file or just switch to mysql
     
  22. Offline

    Infernus

    Yeah, I guess MySQL would be great then.. But I have a question, where do you learn to use MySQL? I would appreicate to know that since I think it would be great to use it for my other plugin :)
     
  23. Offline

    Codisimus

    im trying to find that myself lol, ill let you know when i do
     
  24. Offline

    Infernus

    Thanks, I suppose you didn't find it yet? :(
     
  25. Offline

    Odjit

    Yeah the save file crashed the server again when it got too large, and I had to once more delete it :(
     
  26. Offline

    vildaberper

    If ChestLock isnt blocking explosions that would take out a chest yet, you should add it. :)
    Look at the source of my plugin, Locker.

    Oh, and if you get MySQL working, Id like to know. I have no idea how to even start working with it, seems impossible to find a guide anywhere. :)
     
  27. Offline

    Codisimus

    It still might be a couple days until I get the mysql release working. ill try to release a stable version tonight though
     
  28. Offline

    Arjan

    Nice! Maybe one of the best chest locks i've seen! :D I like it, It's easy and It's VERY usefull! This plugin just finished my anti grief server many thanks! :D you truly earn your [diamond]
     
  29. Offline

    Sefragus129

    how do you change from air to iron ingot? i found the config but i don't know what to type in to change it.
     
  30. Offline

    Codisimus

    it should be iron_ingot but ill double check
     
  31. Offline

    Sefragus129

    Yup it works, you should put the list of items people can change it to. Like admins are golden swords.

    You should make chests that you own unbreakable... I tested it out and my friend just broke it and stole my stuff.

    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