- Some servers don't need a complicated Chest Protection plugin, this one provides the most commonly used features in a lightweight way.
- Just place a chest/double chest and put a sign on one of its sides, with [Protect] on the 1st line (configurable), it will instantly protect the chest, making the text on the sign colorful and pretty to see, with your name in one of its lines. After that only you can access the chest, in any kind of environment.
- This was designed with Towny and Factions environments in mind, where there already is a protection system on chests in a per-plot or per-rank fashion, so in these use-cases only a simple chest protected for private use was more than enough.
- Any Container or Door/Gate/TrapDoor can be protected
- Any Message is translatable
- Per-World enabled
- Configurable Permissions
- Configurable sign tag and text
- Configurable sign owner line, to make it compatible with previously installed sign protection plugins, do not change the owner line number after some signs are created, or the old ones won't work anymore for obvious reasons.
- [NEW] Commands to give / revoke access to a protected block
- [NEW] Option to restrict access to whitelisted players only while the owner is online
- [NEW] Option to restrict protection to blocks where the player has build permissions
- (optional) Explosions and Hopper protection
- (opt) UUID Support (enabled by default, will save the UUID of the player alongside its name when creating the protection sign. This way the protection will work even if the player changes its name. (if you are an offline-mode server or you do not need this feature, you can just set the owner line format to just "%owner%" and the plugin will just use the player name on the sign)
- (opt) Make Protection Expire after x Days
- (opt) Shift-Click to Protect chests, gotta go fast.
- (opt) Vault compatibility, adds economy as in a configurable price for the creation of a protect sign.
- (opt) Towny, FactionsX, Lands, Feudal and FactionsUUID (and its forks) compatibility, adds options to make the mayor/leader bypass break and/or open protection and to disable protection on unclaimed lands like Wilderness. (MassiveCore Factions should work too, but is not supported)
- (opt) GriefPrevention compatibility, enabled by default, denies protection in locations where the player does not have build permissions.
- Much more... (read the configuration file to know about all the features!)
Spoiler: TODO
- Disable protection on unclaimed lands
- Shift-Click to Protect chests
- Add Explosion protection
- Add support for FactionsX and Lands
- Remove protected chests after "X" days
- Add UUID support, because right now player names are used
- Add /protect add <player>, and /protect remove <player>, to give/revoke access to the block while standing in front of the sign.
- Add option to make whitelisted players able to access the chest only while you are online.
- Add /protect whitelist, to open a gui to manage whitelisted players
- Make your own suggestion in the Discussion section <3
Spoiler: API
LocketteXAPI#isProtected(BlockState) // boolean
LocketteXAPI#hasAccess(Player,BlockState) // boolean
LocketteXAPI#getOwner(BlockState) // SignUser
LocketteXAPI#getSignOwner(Sign, signBlock, attachedBlock) // SignUser
From the SignUser you can grab the player name (getName()) and UUID (getUniqueId())
PlayerProtectBlockEvent // cancellable, called before successfully protecting a block. Has methods to get Player and Block involved.
LocketteXAPI#hasAccess(Player,BlockState) // boolean
LocketteXAPI#getOwner(BlockState) // SignUser
LocketteXAPI#getSignOwner(Sign, signBlock, attachedBlock) // SignUser
From the SignUser you can grab the player name (getName()) and UUID (getUniqueId())
PlayerProtectBlockEvent // cancellable, called before successfully protecting a block. Has methods to get Player and Block involved.
You will find all Permissions inside config.yml
- All permissions are configurable, you can edit them yourself to your liking, and reload the plugin in order for the changes to be applied.
____________________________________
Bugs and Suggestions go in the DISCUSSION page, the Review section is not the right place for complaints.Click to expand...
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.12, 1.16, 1.17
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
LocketteX | Optimized, Simple, Chest Protection plugin is a free Minecraft Java mod. Compatible with Minecraft 1.12, 1.16, 1.17, 1.18 and newer. Downloaded 61,249 times (via Spigot). Download it and open it directly in the game.