[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

    co-owners is currently disabled
    i am working on it but ive been sick this weekend and didnt get much coding done

    for anyone having errors try redownloading the newest version

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

    dortan

    Already at the latest version and doubled checked it.
    using CB 617
     
  4. When the players on my server locks the chest and thay logg off and then logg in .. chest is unlocked ? bugg or is it me that is doing somthing wrong
     
  5. Offline

    Codisimus

    im not sure if my plugins work for #617 yet and cant test them while ci.bukkit is down
    My plugin is not at all effected by users logging on or off. when the server is reloaded all chests will be automatically locked, but those two should be related.
    is this happening to everyone on your server? or at least more than one player
     
  6. Offline

    Incendia

    Please add the ability for admins to see who owns and co-owns the chest, and the ability to remove co-owners (only the owner could do it of course)
     
  7. Offline

    Codisimus

    coowners is having issues right now but admins can see the owner by punching it with the "AdminInfoTool" (air by default) when coowners is fixed youll find that /coowner [Name] will remove the person as a coowner if they are already a coowner (in other words it works as a coowner toggle)

    Just to give everyone an update on this, i added furnaces and dispensers (will be in next version) and am working on doors right now (almost done) once tested i will update this.

    Haven't had much of a chance to look at MySQL and still haven't found why names of coowners multiply in save file
     
  8. Offline

    Avous

    it works great now ! the person didnt lock their chest lol thanks! only i and the owner can break em
     
  9. Offline

    XinwxHleak

    I owned my chest, now I can't get into it. I had to delete the plug in to open it again. >_>
     
  10. Offline

    Avous

    I really like this plugin but theres a peeve about it.. double chests you have to claim both sides you cant just claim one is it possible to fix that and sometimes it likes to claim chests are still locked after i unlock em?.. i only used double chests by the way and thats where it doesnt lock both sides at once and you gotta claim them both and not just hit one. and finally thats where one side claims its locked when its unlocked and you can view the contents and take from it from the unlocked side....... and i cant wait for doors! I know I just listed a ton of bugs but still its a great plugin that is one of a kind! i still cant wait to see this plugin bug free
     
  11. Offline

    andy1992

    Hi i really like your plug-in :)

    but is it possible to limit the amount of chest's under one person's control?
     
  12. Offline

    PowerSet

    Are you sure you are using the latest version of this plugin?
    From reading and using the plugin it seems that double chests are fine at this point.

    I have double chests in my server, and have only ever claimed one side, and when locked neither the owner or other players can see inside of the chest.

    If you have runecraft running that will interfere with it and allow anyone to look in any chest regardless of it being locked or not at any time.
     
  13. Offline

    Avous

    no runecraft :) and bukkit 612 and yes latest chestlock
     
  14. Offline

    fuzetsu490

    Awesome plugin :D works perfectly.
    Thanks!
     
  15. Offline

    Avous

    really can anyone take a look at this error. after i reinstalled bukkit to see if that fixed my problem now chestlock is giving me this error.
    Code:
    2011-04-07 15:38:45 [SEVERE] Could not load plugins\ChestLock.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:65)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:52)
        ... 8 more
    2011-04-07 15:38:45 [INFO] Invalid config file found and converted to proper name/format.
    2011-04-07 15:38:45 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-04-07 15:38:45 [INFO] FenceStack version 1.13 loaded.
    2011-04-07 15:38:45 [INFO] [LogBlock] Permissions enabled
    2011-04-07 15:38:46 [INFO] Logblock v0.11b enabled.
    2011-04-07 15:38:46 [INFO] [Permissions] version [2.5.5] (Phoenix)  loaded
    2011-04-07 15:38:46 [INFO] MCDocs - Permissions Detected!
    2011-04-07 15:38:46 [INFO] MCDocs by Tazzernator (Andrew Tajsic) - version 5.2.4 is enabled!
    2011-04-07 15:38:46 [INFO] [mcMMO] Permissions enabled.
    2011-04-07 15:38:46 [INFO] mcMMO version 0.9.15 is enabled!
    2011-04-07 15:38:46 [INFO] [MultiInv] shares.txt contains minor non-existant world Hell
    2011-04-07 15:38:46 [INFO] [MultiInv] Shared worlds loaded succesfully
    2011-04-07 15:38:46 [INFO] [MultiInv] version 1.5.0 is enabled!
    2011-04-07 15:38:47 [INFO] [MYHOME]: 13 homes loaded
    2011-04-07 15:38:47 [INFO] [MYHOME] Permissions enabled using: Permissions v2.5.5
    2011-04-07 15:38:47 [WARNING] [MYHOME] 'Help' isn't detected. No /help support.
    2011-04-07 15:38:47 [INFO] [MYHOME] MyHome 1.9.3 enabled
    2011-04-07 15:38:47 [INFO] Sponge version 1.3 is enabled!
    2011-04-07 15:38:47 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-04-07 15:38:48 [INFO] WorldGuard: (Survivor) Single session is enforced.
    2011-04-07 15:38:48 [INFO] WorldGuard: (Survivor) TNT ignition is blocked.
    2011-04-07 15:38:48 [INFO] WorldGuard: (Survivor) Lighters are blocked.
    2011-04-07 15:38:48 [INFO] WorldGuard: (Survivor) Lava fire is blocked.
    2011-04-07 15:38:48 [INFO] WorldGuard: (Survivor) All fire spread is disabled.
    2011-04-07 15:38:48 [INFO] WorldGuard: Loaded configuration for world 'Survivor"
    2011-04-07 15:38:48 [INFO] WorldGuard 5.0-alpha8 enabled.
    2011-04-07 15:38:48 [INFO] Done (0.372s)! For help, type "help" or "?"
     
  16. Looks like the plugin didn't download correctly. The file is corrupt. Redownload and try again.
     
  17. Offline

    Avous

    just did and it still tosses me that error... bad upload maybe?
     
  18. could be, how are you downloading?
     
  19. Offline

    Avous

    at 100 kb/ps at the site he linked. the d/l finishes instantly and the file size is 22kb
     
  20. through your browser or wget?
     
  21. Offline

    Avous

    im using chrome and i also tried with firefox so yes browser

    i don't suppose anyone could upload the file for me to d/l and test?
     
  22. Offline

    Avous

    Code:
    2011-04-09 12:45:46 [SEVERE] Could not load 'plugins\ChestLock.jar' in folder 'plugins':
    java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:53)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    still getting this error on the latest build :( that makes me a saaaaaaaad panda
     
  23. Offline

    Zenergyx3

    This is easily one of the simplest but most effective plugins there are for chest protection. No more commands. Just tap and go.

    Good job! :) keep up the good work.
     
  24. Offline

    pepdog888

    Could you tell me what to put for the items "stick" and "clock?" couldn't seem to get those to work.
     
  25. Offline

    dortan

    Today, my server crashed for wathever reason, not really important. Never the less, my world was totally corupted And I had to reinstalled a world backup. My Plugin folder has been kept exactly how it was before the crash.
    When I turned on the server again, all the chest were unlock and When I looked into the Chestlock.save file, it was empty...Why ?

    EDIT : Before I start working on restoring my server, I made a Backup of Everything I had. I just wen into my backup and notice that chestlock.save is not even there...so something deleted the file. Is there a mecanism in your plugin that does that ?
     
  26. Offline

    habbah

    Update Please

    Code:
    2011-04-12 19:07:14 [SEVERE] Could not pass event BLOCK_BREAK to ChestLock
    java.util.ConcurrentModificationException
        at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:778)
        at java.util.LinkedList$ListItr.next(LinkedList.java:713)
        at ChestLock.ChestLockBlockListener.onBlockBreak(ChestLockBlockListener.java:39)
        at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:392)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:359)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    cb670
     
  27. It works fine, but every single time someone destroys a chest i get a error like the guy above
     
  28. Offline

    spunkiie

    any update on this ?
     
  29. Offline

    Codisimus

    @spunkiie
    @sezzor
    @habbah
    @Avous
    @XinwxHleak
    @holyone
    @peas
    @Neon_Bible
    @jyggen
    @Pomme72
    @Donny
    I apologize for being away but i got a huge update for you guys, All previous bugs should be fixed plus lots of extras, check the changelog for more details.
    if it crashes on load it will do this, but i fixed that in new version
    should be "stick" and "watch"

    @andy1992 definitely, i should add a property for chest limit soon
    @Incendia admins can see the owner with the AdminInfoTool, coowners can be removed by typing "/coowner [Name]"
    @dirkson sorry, hopefully i can add MySQL soon
    @Drtrider doors added!
    @crakdmirror furnaces/dispensers added!
     
  30. Thanks alot mate, will do a youtube guide about doors for the players on my server next week, can post it here to if anyone wants to use it.
     
  31. Offline

    Codisimus

    that would be great, i am making a video of how everything works, but not on how to actually make them
     

Share This Page