Calling "OnBuildingPrivilege" on console all the time
ErMonito

08:56 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3221ms
09:05 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3194ms
09:05 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 2749ms
09:05 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 2726ms
09:05 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 4080ms
09:05 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 4194ms
09:06 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3840ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3527ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 104ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 4699ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3226ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 123ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3610ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3526ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 109ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 165ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 326ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 198ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 140ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 117ms
09:15 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 107ms
09:16 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 5431ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 105ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 4990ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 122ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 122ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 102ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 5138ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 134ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 118ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 145ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 5905ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 120ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 119ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 6193ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 112ms
09:25 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 126ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 129ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 113ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 132ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 116ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 6310ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 317ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 118ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 113ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 107ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 125ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 121ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took 141ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 4784ms
09:26 [Warning] Calling 'OnBuildingPrivilege' on 'TcExtender v0.0.1' took average 3554ms

Is there a way to avoid this?.

MJSU

What did you set the value in your config to?

ErMonito
Original Poster

{
"Permission Ranges (Meters)": {
"tcextender.use": 50.0
}
}

MJSU

That would be the issue. That is probably too large for the server to be able to handle.

ErMonito
Original Poster

How much would be the maximum possible?.

MJSU

That really depends on the server but the rule of thumb is everytime you double vanilla it has 4x the area it has to process to find the building privilege for the player so it can get quite intensive. The logic this plugin uses is the same as vanilla which means it has to check every building block in the range (meters) you specify. If you're wanting something larger you may want to have custom logic created to improve performance.

ErMonito
Original Poster

I thought this plugin was to extend the range of the closet. I see that no.

Merged post

I lowered it to 16 and it still comes out the same.

MJSU

Yes, that is what this plugin does but the more you increase it the more of a hit on performance it will add. The check for which building priv to use can be intensive in larger buildings.