[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. I'm getting the following when ChestLock starts up:
    Code:
    10:24:11 [SEVERE] Invalid blocktype, Check world name for camerontr;world;268;64;16;,;
    10:24:11 [SEVERE] Saving turned off to prevent loss of data
    10:24:11 [SEVERE] Invalid blocktype, Check world name for camerontr;world;268;64;10;,;
    10:24:11 [SEVERE] Saving turned off to prevent loss of data
    10:24:11 [SEVERE] Invalid blocktype, Check world name for camerontr;world;268;64;11;,;
    10:24:11 [SEVERE] Saving turned off to prevent loss of data
    10:24:11 [SEVERE] Invalid blocktype, Check world name for kEnder242;world;476;60;751;,;
    10:24:11 [SEVERE] Saving turned off to prevent loss of data
    10:24:11 [SEVERE] Invalid blocktype, Check world name for kEnder242;world;476;60;752;,;
    10:24:11 [SEVERE] Saving turned off to prevent loss of data
    10:24:11 [SEVERE] Invalid blocktype, Check world name for kEnder242;world;-171;105;1148;,;
    10:24:11 [SEVERE] Saving turned off to prevent loss of data
    10:24:11 [INFO] ChestLock 0.8 is enabled!
    I realize this might be bukkit generated output, but it's as a result of something ChestLock is doing on initialization. I have a bunch of other plugins installed and only ChestLock causes this output.

    I started a thread in general before I figured out it was ChestLock causing it. here's the link to that thread: http://forums.bukkit.org/threads/invalid-blocktype-error.15694/. There's more information int here about my server too.

    Things I've tried:
    I went to the first set of coordinates listed to see what it was (plain sand inside a basic stone structure built built by the listed user. I chopped it out and replaced it with stone. The error did not change.

    I'm using ChestLock 0.8, CB 740, and MC 1.5.02

    EDIT: I think I see what's happening. The chestlock save file has records in it for locked things at those coordinates, but the blocks that are there now are not lockable blocks (ie sand). I believe this got de-synchronized when I had CB disabled after 1.5 came out, and either I didn't notice the error messages until now, or they were added in 0.8.

    I'm not sure why you chose to disable lock status saving and leave the invalid entries rather than just fixing them, but removing entries for blocks that are of an invalid type would seem like a more sensible reaction to this state, or at least make the messaging a little clearer about what exactly is happening.
     
  3. Offline

    Codisimus

    It will proly have a config setting and permission node to override the protection
    Ill run sum tests.
    does this occur only in certain chunks?
    you using the latest version? and permissions? if so can I see your permission file?
    hmm.. ill test it out.
    so your using isOp()?
    Do you have multiple worlds? It disables saving (and doesn't just delete the entries) because if updating from an older version then the chests in other worlds must have the world name entered. So if thats not the case then just delete these entries. I will try to make the error message more clear.
     
  4. Offline

    heifinator

    Permissions 2.7 (just installed) Just installed newest chestlock.

    I drop a chest, lock it. Any member, donor, or staff member can delete it with any item in hand. Admins and Staff have chestlock.admin. Everyone else has all other permissions.

    They are formatted properly - 'permission' all other permission mods working fine.

    Thanks!
     
  5. Offline

    Codisimus

    I don't think your suppose to include the ' anymore, but maybe I can hop on your server and test it out
     
  6. Offline

    heifinator

    mc.deviantevil.net

    Thank you! Im on right now
     
  7. Offline

    Odjit

    CB 740
    Permissions 2.7.2
    iConomy 5


    I am also having the issue where players are able to break chests that aren't theirs.
    I have the latest permissions.

    Also, I think it needs an update for iConomy 5? Scrolls this on startup
     
  8. Offline

    Codisimus

    I updated to the new iconomy and will upload the new version once i fix the breaking issue
     
  9. Offline

    Zoltarr_07

    AWESOME PLUG-IN!!!! love the simplicity! one minor snag though: if a door is locked, all one has to do is put a pressure plate in front of it and it will open for them.
     
  10. Offline

    kyonabbeh

    As a workaround, place furnaces as the ground block in front of your door where the problem area is.
     
  11. Offline

    Onon6

    I will love you if you wouldn't take mind to tell me the randomitem in chest / warpbutton plugins in your video.
    Don't worry, your plugin is still the best :3
     
  12. Offline

    Codisimus

    Ugh I forgot to register the event. I'll fix it

    @heifinator
    @Odjit
    @Zoltarr_07
    @kyonabbeh
    I found the error causing the problems. Will update as soon as I do a few more tests. New version will require iConomy 5

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

    heifinator

    Thanks
     
  14. Offline

    dshadows07

    It doesn't appear to be the same chunks, it's different everytime. Some chests work, and others in the same area don't It's rather confusing, once the chest has 'broken' it doesnt respond to anything.
     
  15. Offline

    Odjit

    aw, I had this problem too before, I was hoping it was done by now =(
     
  16. Offline

    Eledyssil

    I have a problem. I made a server with this plugin, just to play with some friends. It seems that when I restart the server, the chests opens up again, so the player will have to re-lock it.
    Anyone have a clue?

    Oh yeah, using CraftBukkit 0.0.1 (Don't know really, the latest one available) and ChestLock v0.8.

    Thankies.
     
  17. Offline

    Codisimus

    Is there any errors on server start?
    While testing double doors worked fine...

    I fixed redstone events and block break events and PROMISE to update this (as well as Turnstile and ButtonWarp) tonight. As I said, I really busy this week and I thank everyone for their patience and will get to my other plugins as soon as I can.
     
  18. Offline

    heifinator

    Awesome can't wait.
     
  19. Offline

    Codisimus

    Updated!
     
  20. Offline

    DeathDrown

    Hey,

    First of all thanks for making this plugin its GREAT ! :)

    But there is only one problem, Everytime I stop the server and then the next day start it again all the chest are unlocked again, and no one owns a chest anymore?

    Only I have my chest but the rest of the players don't.. :(

    Sorry for my english I am not a native speaker :p

    Hope you can help me out

    Thanks in advance
     
  21. Offline

    Codisimus

    does it say "Saving turned off to prevent loss of data" when you start the server? Easiest fix is to delete the save folder and start over (since it seems you only have one chest locked)
     
  22. Offline

    iizbored

    apparently my friend changed the key to my door how do i prevent this
     
  23. Offline

    Codisimus

    Don't give him the chestlock.admin node
     
  24. Offline

    d00ba

    Hi there,

    Installed this MOD on my server yesterday, it seemed to work like a charm. However, every so often I find that all functionality is switched off. I can access all chests that were previously locked, and I'm unable to use any features until I reconnect, at which point everything operates correctly again.

    There aren't any errors showing on client or server, just the plugin seems to stop working completely as if it isn't installed.

    Running the latest version, 0.8.1 along with bukkit recommended build 740.
    My server is running on Ubuntu Server 10.04.

    EDIT: same issue for another client on the server. His chests were unlocked and he nor I were able to get messages from the plugin "chest is now locked" etc, yet my chests were fine, locked and responding. relogging didn't resolve issue, I had to reset server for this to work.

    EDIT2: After reset, his chests were fine but mine aren't working. :confused:
     
  25. Offline

    faroutmat

    Hate to ask this but, why is it that whenever I / anyone on our server logs in. Their "owned' chests become normal no locked chests. aka everytime we log in, we have to click on the chests to own them again. otherwise they are default chests
     
  26. Offline

    d00ba

    I've switched to lwc for the moment. Seems to work perfectly.
     
  27. Offline

    MaximeGagne442

  28. Offline

    Kahl

    Code:
    2011-05-12 15:04:32 [SEVERE] [ChestLock] Invalid blocktype, Check world name for vincebruno;world;-623;73;-1891;,;
    2011-05-12 15:04:32 [SEVERE] [ChestLock] Saving turned off to prevent loss of data
    2011-05-12 15:04:32 [INFO] ChestLock 0.8.1 is enabled!
    2011-05-12 15:04:32 [INFO] ChestLock Successfully linked with Permissions!
    Code:
    15:04:32 [SEVERE] Could not pass event PLUGIN_ENABLE to ChestLock
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at ChestLock.PluginListener.onPluginEnable(PluginListener.java:32)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:408)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:633)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
        ... 13 more
    What is the problem why my chests won't save?
     
  29. Offline

    Kahl

    Our chests are being able to be destroyed, I am on 0.8 though because we did not upgrade our iConomy just yet.

    Has this been fixed in the 0.8.1 version?
     
  30. Offline

    Kahl

    Still need this resolved.
     
  31. Offline

    785412

    What is the plugin to warp between the worlds (button)? Sorry for my English.
     

Share This Page