Simple plugin that allows you to lock your chests. Locked chests cannot be broken, hopped out of, or opened by other players. This mod also makes it so all chests are blast-resistant.
Chest locking can be done in 2 ways: using the /lockchest command or a key. To use the command, do /lockchest add while looking at the chest you wish to log. To use a key, rename an iron or gold nugget to key in an anvil (if the resource pack is installed, it will change the texture to a key), then right click on the chest while holding shift with the key, it will then lock the chest. LOCKING CHESTS WILL ONLY LOCK THEM FOR OTHER PLAYERS, MEANING YOU CAN OPEN THEM WHILE LOCKED. To unlock a chest, simply use the key again on the chest, or do /lockchest remove while looking at the chest.
There is also a trust command, allowing you to trust certain players with access to your chest, without allowing them to break/unlock the chest. To use this, do /trust (player) while looking at the chest. NOTE: The player you are trusting must currently be on the server.
For operators, there is also an inspect command. Performing the /lockinspect command will give you all information about the chest you are looking at, including location, owner, and trusted players.
DISCLAIMER: The resource pack does not add new items to the game; it will change the texture of iron and gold nuggets named key. If the resource pack is not on, the plugin will still function correctly, and iron/gold nuggets named key will still function as keys. Using keys also isn't necessary, it just speeds up the ability to lock chests.
All Versions
+ Add Version## Added
- Added the
lockedchests.admin.bypasspermission. - Added
/forceopenfor admins withlockedchests.admin.bypassto open locked containers without changing ownership or trust data.
## Changed
/lockchest removenow useslockedchests.admin.bypassfor admin lock removal instead of checking operator status directly.
## Notes
- Regular locked-container opening is unchanged. Owners and trusted players can open locked containers normally.
- Trapped Chests & Barrels Support** — Trapped chests and barrels can now be locked, unlocked, inspected, and trusted just like regular chests.
- Offline Player Trusting** —
/trust <username>now works even when the target player is offline by resolving their UUID through the Mojang API.
## Improvements
- Dynamic Messages** — All player-facing messages now correctly display the container type (Chest / Trapped Chest / Barrel) instead of generically saying "chest."
- Explosion Protection** — Trapped chests and barrels are now protected from explosions alongside regular chests.
- Trusted Data Format** — Trusted player lists are now stored as raw UUID binary data rather than text strings for better efficiency.
> [!IMPORTANT]
> **Data Migration** — Existing trusted players on locked chests will **not** carry over from v1.2. After updating, you will need to re-trust players on any previously locked containers. Ownership data is unaffected.
## Supported Containers
- Chest
- Trapped Chest
- Barrel