After restarting the server, the code locks will disappearSolved
				if (player.userID != miningQuarry.OwnerID)
				{
					return true;
				}

I think this is better, isn't it?

Y7BDiYaAMeqWOHU.png VisEntities

If you place a tool cupboard or storage container and then abandon it, any other player can come along and deploy a code lock on them. The same applies to mining quarries, it's the responsibility of the player to secure their quarryΒ 

Hello, can you make it so that only the owner of the quarry can install the lock or make it so that this function can be configured in the configuration file?

dream
				if (player.userID != miningQuarry.OwnerID)
				{
					return true;
				}

I think this is better, isn't it?

"this part of the code prohibits a non-owner from putting a lock? How can I add this to the plugin so that only the owner can put a lock on the quarry?"

a2fnd7lhxU8w5Zq.png VisEntities

I'll test this and see what's causing it


I noticed that there was another storage facility in the same quarry!!! before installing your plugin this did not exist!!! It would be nice to fix it!

Fixed and request has been implemented

πŸ‘ Nice!

Locked automatically