Entities not detected correctly when tool cupboards overlap
Does foundation is connected to TC?
TC is right in front of me when you watch the video and the other one is behind but the two are not connected.

edit: server wiped => your plugin don't have data file so no need to remove it.... build 2x2 => i get same message without restriction, I've placed 3 turret's:
You used 1 that type of building parts in that building, 14 available...​


i'm unlimited...

Tanki
TC is right in front of me when you watch the video and the other one is behind but the two are not connected.

edit: server wiped => your plugin don't have data file so no need to remove it.... build 2x2 => i get same message without restriction, I've placed 3 turret's:
You used 1 that type of building parts in that building, 14 available...​

i'm unlimited...

Post your config here

no config, ive deleted all files related, can't use with this bug... check video, ive used /blimit command
Tanki
no config, ive deleted all files related, can't use with this bug... check video, ive used /blimit command

Well then i can't help you, because i dont know what exactly limits was

No worrie, ive just reported a bug for your plugin... 
why is this marked solved when it is still a bug?

this issue is you are not getting the correct TC the player's building is on in the CanBuild hook, and therefore not a config issue
It's me for solved, he can't fix apprently without config.... and now, movie was deleted...
nivex
why is this marked solved when it is still a bug?

this issue is you are not getting the correct TC the player's building is on in the CanBuild hook, and therefore not a config issue

That's not right. I tested it with small limits before release, and it worked fine (on building)

it is right. videos do not lie, sir. just because code appears to work does not mean it cannot be broken, and in this case it was broken and should be fixed
nivex
it is right. videos do not lie, sir. just because code appears to work does not mean it cannot be broken, and in this case it was broken and should be fixed

Videon shows small part of environment how he used it. I can't fix problem that not possible to understand or replicate. For that i need his exact config and environment. Maybe its language file issue at all

he said what the issue is, and i said why it is an issue. you do not need a config, or a language file, or a better video. you've already been given enough info to fix it. to fix you need to get the cupboards that are overlapping each other and determine the closest cupboard to the player. your code currently determines the dominating building privilege. that's why it doesn't work with overlapping cupboards, because the dominating building privilege may not always be the privilege that is closest to the player.