Protection Signs - CryptoMorin/KingdomsX GitHub Wiki
Protection Signs are basically an advanced version of Lockette plugin made specially for kingdoms.
You can protect your containers with a single from others, add groups or use everyone tags.
By default, you can protect any container such as chests, furnaces, hoppers and etc... (except ender chests since there is no reason to protect them)
All the blocks and protection mechanics can be changed in 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 and the sign and open the chest. Also, if you make your chest a double chest, it'll also automatically protect that without you needing to replace the sign.
You can edit the protection settings by right-clicking on the sign. You can configure your protection type which the two other types are introduced below. You can also add other players and kingdoms to your chest group to either include or exclude 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 other unprotected inventories. Such as items from chest to hoppers. Items from an unprotected inventory cannot be transferred to other protected inventories. Such as items from 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 kingdom are allowed to remove and access your chest and chest 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.