HomeJavaModsLocketteX | Optimized, Simple, Chest Protection plugin
LocketteX | Optimized, Simple, Chest Protection plugin
ModsJava

LocketteX | Optimized, Simple, Chest Protection plugin

⬇ Download on Spigot
[​IMG]

[​IMG]
[​IMG]
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.

[​IMG]

You will find all Permissions inside config.yml
____________________________________

Bugs and Suggestions go in the DISCUSSION page, the Review section is not the right place for complaints.
Click to expand...

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

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.

Explore more