BlockProt icon indicating copy to clipboard operation
BlockProt copied to clipboard

[Feature] Bulk edit a player's blocks

Open Henry0811 opened this issue 4 years ago • 7 comments

Your question

In our server, sometimes there are players quit. But then if they want to give their things to another player, then they have to unlock all the chest that they had lock before. If they have so many chests then it would be hard to unlock all of them. Is there a command that can unlock all the blocks that a player had lock before ?

Henry0811 avatar Jan 20 '22 08:01 Henry0811

Oh, and if there's no such command exist, does anybody know where is the plugin data file?

Henry0811 avatar Jan 20 '22 08:01 Henry0811

Hi @Henry0811, sorry for the late response. There currently is no bulk edit command so there's no alternative to manually removing all protections currently, I am looking at a solution for this though!

For the data file: There is none, the protections are stored in the world folder in the blocks themselves.

spnda avatar Jan 22 '22 20:01 spnda

I want to know that how to stop reminding players How to lock?

Henry0811 avatar Apr 07 '22 01:04 Henry0811

Are you sure you are using the newest version of the plugin? This should have been fixed a long time ago. A simple opening of the inventory should be sufficient to remove that message for that player. Otherwise, look at config.yml, theres a setting there.

spnda avatar Apr 07 '22 18:04 spnda

I am using the 1.06 version and I think it is the newest version.

Henry0811 avatar Apr 08 '22 07:04 Henry0811

1.06 was re-released which included a fix. Re-downloading is always a good idea.

spnda avatar Apr 08 '22 08:04 spnda

Hi I'm really looking for this kind of feature for BlockProt. It is common when players leave and left hundreds of empty chests from their underground storage. If BlockProt data stored in blocks data maybe we can give permission for admins to perform command within specified radius in blocks. So this command will search for locked containers and update block data (wipe BlockProt data: chest owner and whether it's locked or not).

The algorithm of this command would be something like... Search for Locked Blocks specified in BlockProt Setting within user specified radius and remove owner and lock status.

For example /blockprot purge PlayerName r:100 (where r=radius)

ilfarpro avatar Aug 25 '22 18:08 ilfarpro