ChestLock
Automatic container protection with trust, teams and double-chest awareness.
ChestLock protects containers so other players cannot steal from or break them. The key idea: players do not have to lock anything manually. The moment someone places a chest (or other container), it is locked to them automatically. Everyone else is locked out until the owner trusts them.
How it works
- A player places a container - it is instantly locked to them (with
AutoLockOnPlace: true). - Anyone else who tries to open, take from, or break it is blocked.
- The owner uses
/trustand then clicks the container to add someone they trust. /lock publicturns a container into a shared one: anyone can put items in and take them out, but nobody can destroy it.
What it protects
- Chests and trapped chests (single and double - both halves share one lock)
- Barrels, shulker boxes
- Hoppers, droppers, dispensers
- Furnaces, blast furnaces, smokers, brewing stands
Hoppers and other automation trying to pull items out of a locked container are rejected unless the automation's owner is trusted (BlockHopperSteal).
Commands
/lock- lock the container you are looking at, or/lock public//lock private/unlock- remove the lock from your container/trust- then click a container to trust a player on it/untrust- then click a container to remove a trusted player/lockinfo- click a container to see owner, trusted players, public/private and coordinates
Configuration
| Key | Description |
|---|---|
Modules.ChestLock.Enabled | Turns the whole module on or off. |
AutoLockOnPlace | Lock a container automatically when it is placed. Turn off to require manual /lock. |
TeamMembersHaveAccess | Members of the owner's team can open the container without being trusted individually. |
BlockHopperSteal | Block hoppers/droppers from pulling items out of a locked container. |
ProtectFromExplosions | Prevent TNT and creeper blasts from destroying locked containers. |
ShowOwnerActionBar | Show the owner's name in the action bar when a player opens someone else's container. |
The chestlock.db file is created in plugins/MuteEssentials/. Older databases gain the is_public column automatically on first start, so upgrades are transparent.
Permissions
| Node | Grants |
|---|---|
muteessentials.chestlock | Use the lock/trust commands (default: everyone) |
muteessentials.chestlock.admin | Open, modify and break any locked container regardless of owner |
Notes
- Team access: with
TeamMembersHaveAccess, your whole team shares your containers without per-player trust. - Public vs private: a public lock still cannot be broken - it only opens up the contents to everyone. Use it for community drop-off chests.
- Trust is per-container: trusting someone on one chest does not trust them everywhere.