Protection Signs - CryptoMorin/KingdomsX GitHub Wiki
Protection Signs are an advanced version of the Lockette plugin made specifically for kingdoms.
You can protect your containers from others with a single sign, add groups, or use everyone tags.
By default, you can protect any container, such as chests, furnaces, and hoppers, except ender chests since there is no reason to protect them.
All blocks and protection mechanics can be changed in the protection-signs.yml config.
Protecting
To protect a chest, put any sign on it and type [protect], [protected], [private] or private in the first line. If the chest is successfully protected, the sign will change.
The easiest way to protect your chest is to sneak and left-click a chest with any sign in your hand. This method even works in creative and is quite quick.
Now, only you can break the chest or sign and open the chest. If you turn it into a double chest, the other half is also protected automatically, so you do not need to replace the sign.
You can edit the protection settings by right-clicking the sign. You can configure the protection type, including the two other types introduced below. You can also add other players and kingdoms to your chest group to allow or prevent them from accessing the chest. Note that these settings will override the protection type.
[Everyone]
There are two types of [Everyone] tags that you can use to protect your chest. The protection process is the same, except you have to write a different thing in the first line:
[everyone]Everyone in your kingdom can access this chest, but cannot break it.[everyone*]Everyone can access this chest, whether they're in your kingdom or not, but they cannot break it.
Transferring Items
Items from a protected inventory cannot be transferred to unprotected inventories, such as from a chest to hoppers. Items from an unprotected inventory cannot be transferred to protected inventories, such as from a hopper to chests.
If source and destination inventories are both protected by the same player, items can be transferred.
If the destination inventory is protected by a player who is allowed to access the source inventory, items can be transferred.
This behavior depends on the disallow-container-transfers option in protection-signs config.
Protection Sign Kingdom Permission
Players with this permission in your kingdom are allowed to remove and access your chest and view its settings. However, they cannot modify the settings.
Unlike other kingdom permissions, members from other kingdoms that have the build or interact attribute may not remove or access the chest even with this permission.