Lightweight Chest Protection & Management

Lightweight Chest Protection & Management, also known as LWC is a plugin for Hey0's mod.

Features

 * Both protections by user/group and by password
 * Limits of how many chests a user or group can lock
 * Small memory footprint (virtually none). No flatfiles. No excessive storage in memory—the protected chests are only loaded into memory temporarily when needed.
 * No excessive disk I/O. The only data stored on the disk is Chest locks and Limits. Everything else such as pending locks, unlocks, etc. is stored in an sqlite in-memory database, which is never written to the disk.
 * sqlite is used—no MySQL is needed which some people can't run because it's heavy. SQLite comes with the mod, packaged with it if you will. in some cases SQLite is actually faster than MySQL. It's very fast and is very attractive for a mod such as this, where thousands of chests may be protected

Limitations
As with any other mod, this mod cannot prevent Creepers/TNT from blowin' up your chest. Note that only LWC Admins and the Chest Owner can break the chest.

Commands

 * /lwc create public - Create a public chest ANYONE can access but not lock
 * /lwc create password  - Create a password-protected chest
 * /lwc create private g:admins @Hidendra EvilGuy g:mods CoolGuy - Create a protected chest. @ denotes they are a chest admin (can add/remove users)


 * /lwc modify -EvilGuy Hidendra -g:mods - In the last command, this one would remove Hidendra's chest admin access, remove EvilGuy's access to the chest fully and also remove the group mods from access. - denotes removing them


 * /lwc free chest - Remove a chest, only the chest owner and LWC Admins can do this
 * /lwc free pending - No longer needed as of 1.1, but still here just incase (deprecated)
 * /lwc info - View info on a chest. Only LWC admins and Chest admins can use this on their chests
 * /lwc The following commands can only be used by LWC Admins
 * /lwc admin limits  - Limits the list of groups/users to only be able to create so many protected chest (Protected=public,password,private). g:group denotes groups
 * /lwc admin clear chests - WARNING: PERMANENTLY REMOVES EVERY CHEST! NO WARNINGS!!
 * /lwc admin clear limits - WARNING: PERMANENTLY REMOVES EVERY LIMIT! NO WARNINGS!!

LWC Admins
If a player has access to the command /lwcadmin, they have admin rights to this mod. What does this entail? They can:


 * /info all chests
 * /free any chest
 * view+modify any chest

LWC Mods
If a player has access to the command /lwcmod, they have mod rights. They're "basically" admins, just with some restrictions. They can:


 * /info all chests

LWC Mods can currently only /info chests. Originally it was they could view them as well, but nothing stopped them from taking items (they'd regenerate as if nothing happened, which essentially duped it)

Installation & Download
The Bukkit page can be found here. This has all the installation links required.

To install LWC, put LWC.jar into your hey0 Plugins directory and add LWC to the plugins= line in your server.properties.