MuteBefehl Wiki

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

  1. A player places a container - it is instantly locked to them (with AutoLockOnPlace: true).
  2. Anyone else who tries to open, take from, or break it is blocked.
  3. The owner uses /trust and then clicks the container to add someone they trust.
  4. /lock public turns 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

Modules:
  ChestLock:
    Enabled: true
 
ChestLock:
  AutoLockOnPlace: true
  TeamMembersHaveAccess: true
  BlockHopperSteal: true
  ProtectFromExplosions: true
  ShowOwnerActionBar: true
KeyDescription
Modules.ChestLock.EnabledTurns the whole module on or off.
AutoLockOnPlaceLock a container automatically when it is placed. Turn off to require manual /lock.
TeamMembersHaveAccessMembers of the owner's team can open the container without being trusted individually.
BlockHopperStealBlock hoppers/droppers from pulling items out of a locked container.
ProtectFromExplosionsPrevent TNT and creeper blasts from destroying locked containers.
ShowOwnerActionBarShow 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

NodeGrants
muteessentials.chestlockUse the lock/trust commands (default: everyone)
muteessentials.chestlock.adminOpen, 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.

On this page