Bug / Feature Request: Connecting pipes to items not owned by the player outside TC Range

As the title says, in the current "release" version of the plugin, it's possible to connect a pipe to a container that isn't owned by the player / clan, provided it isn't in TC range. We found out in a PvE Server. Quarries and Pumpjacks are often placed outside of TC range, and we had a case of someone stealing loot out of them using SyncPipes and a chest. Would it be possible to add a check preventing a player from connecting a pipe to an item he or his clan / team do not own? Thanks.

The easiest way to prevent this is to add another tc next to the quarry or pumpjack. 

From what I can tell in order to support teams or clan restrictions I would need to add a dependency on the specific team/clan plugin and there are a few different plugins for managing that. 

Merged post

I'll look to add a new hook in a furture version that allows other plugins to prevent pipes being built. This will allow intergration with multiple plugins..

Thanks. 

I think, besides a more complex check on teams and clans requiring hooks, something easier to implement is just to check if the items being connected are in TC range OR owned by the player. I think code-wise this should me much easier to do (and allow a switch in config) and would provide a quick fix to the issue.

Regarding TCs around quarries, I've started suggesting my players doing that. Many of their "quarry" builds are just a center building with pipes streaming out into several quarries and pumpjacks around. 

It already checks for build permissions (in range of tc) before allowing pipes to be built. 

Merged post

Ah sorry misunderstood what you meant. I will investigate a locking to owners outside of the range of a tc.

Merged post

I've looked into this and it wouldn't be a secure way of managing it. All it would take is for someone to place their own TC in range and then it would grant access.