This update transforms
ChestLocked into a globally compatible plugin! You can now customize every single message and setting to fit your server's theme or language.
What's New?
- Full Multi-Language Support (config.yml)
- You can now translate the entire plugin! From the [Locked] tag to the "Access Denied" messages.
- Supports Minecraft color codes (e.g., &a, &l, &6).
- Custom Placeholders: Use %owner% in messages to dynamically show who owns the chest.
Code (Text):
# ==========================================
# ChestLocked Configuration
# ==========================================
settings:
# The text that must be placed on a sign to lock the block.
lock-tag: "[Locked]"
# Color of the [Locked] tag on the sign (&4 is Dark Red).
lock-tag-color: "&4"
# Color of the owner's name on the sign (&1 is Blue).
owner-name-color: "&1"
messages:
# Appears when a block is successfully locked.
locked-successfully: "&aBlock locked successfully!"
# Appears when someone other than the owner tries to edit the lock sign.
cannot-edit: "&cOnly the owner can edit this lock!"
# Appears when someone other than the owner tries to break the chest or sign.
cannot-break: "&cOnly the owner can break this!"
# Appears in the Action Bar when someone tries to open a chest owned by another player.
# Use %owner% to display the owner's name.
interact-denied: "&c Locked by %owner%"
# Appears when someone tries to place a chest next to a locked one to merge them.
cannot-merge: "&cYou cannot place a chest horizontally next to a locked one!"
# Appears when someone tries to place a hopper under a locked container.
hopper-denied: "&cCannot place a hopper under a locked container!"
# Message for Admins when a new update is detected.
update-available: "&6[ChestLocked] &eNew update v%version% is out!"
# Message sent when the config is reloaded.
config-reloaded: "&a[ChestLocked] Configuration reloaded successfully!"
- Live Reload Command
- Added /chestlock reload.
- Change your settings in the config.yml and apply them instantly without kicking players or restarting your server.
- Required permission: chestlocked.admin.
- Official Permission Nodes
- No longer restricted to just "OPs." You can now use permission managers like LuckPerms to give your Moderators access to the reload command and bypass protections.
- Node: chestlocked.admin
- Custom Lock Tags
- Want your lock signs to say [Private] or [Locked] instead? Now you can change the detection tag in the config settings!
️ Bug Fixes & Improvements
- Code Clean-up: Optimized how the plugin reads signs to ensure zero lag when many players are online.
- Smart Config Generation: The plugin now automatically creates a beautiful, commented config.yml if one doesn't exist.
- Action Bar Polishing: Improved the timing of action bar alerts for a smoother player experience.
How to Update to v1.2
- Delete your old ChestLocked.jar from the /plugins folder.
- Upload the new ChestLocked v1.2.
- Important: If you want the new config.yml features, let the plugin generate a new file.
- Restart or use /chestlock reload.
Pro-Tip: If you are running a survival or factions server, try changing the lock-tag-color to match your server's primary color for a more "branded" feel!