[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

    tris-broXP

    the download link off chestlock does not exit
     
  3. Offline

    Codisimus

    which link?
     
  4. Offline

    tanaka141

    I download your plugin, install without changing anything, at the first use of the command "lock", i had "an internal error" which is this :
    Code:
    2011-10-29 01:42:12 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'lock' in plugin ChestLock v1.3.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at com.codisimus.plugins.chestlock.listeners.commandListener.onCommand(commandListener.java:49)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 12 more
     
  5. Offline

    Sedrion

    This happens to me to. And when I click the chest the first time it says chest belongs to me twice. Next time i click it, it says the same again.
     
  6. Offline

    Codisimus

    use the version for the Bukkit dev Page
    http://dev.bukkit.org/server-mods/chestlock/
     
  7. Offline

    Sedrion

    It's the one I used. 1.31. It does not work :/. Seem to get the same NULL error in the lock command.
     
  8. Offline

    tris-broXP

  9. Offline

    Codisimus

  10. Offline

    nr23nr

    Error 404. Link is broken or not working. Tried the latest version on the "older versions" NONE of them are working... I type in /lock and it just says /lock /lock never... it doesn't work. Please fix the link or something and help me please??
     
  11. Offline

    tris-broXP

    ok thanks
     
  12. Offline

    Viperdream

    Great plugin, a nice addition would be a command to clear all the locks from a player

    Like /lock clear [player]

    At least it would help me a lot :D
     
  13. Offline

    Codisimus

    already have it "/lock list clear - Disown all chests and doors"
     
  14. Offline

    Viperdream

    Yeah, but only for one player. So it won't remove all the locks
     
  15. Offline

    Codisimus

    you could just delete the save file

    I'll add parametters to the clear command to allow only clearing a certain type of block or to clear data for a specific player/all players

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

    Beldarak

    Hi ! I really like your plugin but it seems he's non-compatible with Showcase ("could'nt pass ENTITY_PLAYER" I think). The chests work great, not the showcases.

    If you could investigate on it, it will be really great ;)
    I'll post the same message on the Showcase page.
     
  17. Offline

    JuarezCause

    I'm not able to download the latest version it says "404 page not found" could u plz re-upload the file?

    EDIT: Forget it, I found it on the old versions file, but I don't seem to be able to use it on craftbukkit [1337]. Is the pluggin not compatible with [1337] or is it a bug of some kind?
     
  18. Offline

    Royalgamer06

    This doesn't work anymore when I updated to CB 1575 (MC v1.0.0) = the latest build.
    Please make this work with this build!
    I love your plugin,
    I dont use any permissions.
    Thank you!
    Greetz Roy
     
  19. Offline

    Madmusk

    Was hoping to see this updated. Is there anything like this plugin that doesn't require you to have an object in your hand?
     
  20. Offline

    Codisimus

    This is up to date, watch the dev page (http://dev.bukkit.org/server-mods/chestlock/) you don't need an object in your hand if you set the tool to 'any' in the config
     
  21. Offline

    ivansmo

    Could you please add a disable premissions option?
     
  22. Offline

    Codisimus

    wut do you mean by this? which permmissions do you want to disable?
     

Share This Page