NullReferenceException at IsAllowedFixed
NullReferenceException: Object reference not set to an instance of an object

After I install the latest version, consol started spamming this error.
+ Loading and UnLoading this plugin takes too much time on a local server (without buildings and players)
Calling 'Unload' on 'SkyTurrets v2.0.1' took 172ms
Unloaded plugin Sky Turrets v2.0.1 by Xavier
Calling 'OnServerInitialized' on 'SkyTurrets v2.0.1' took 172ms
Loaded plugin Sky Turrets v2.0.1 by Xavier
damn... yeah working on new fix using Colliders

After restart or installing this plugin while server is running with turrets in it, consol spams this again;

NullReferenceException: Object reference not set to an instance of an object

uninstall the plugin, go to data folder and remove the SkyTurrets.json file, as well as in the config folder. Then install the plugin again and check

Edit:
Noticed plugin works when u place down a new turret
(Filename: <4fde477dc78347f1b61840795a8e4b70> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.SkyTurrets.IsAllowed (AutoTurret turret) [0x0001a] in <4fde477dc78347f1b61840795a8e4b70>:0
at Oxide.Plugins.SkyTurrets+AntiHeli.OnTriggerStay (UnityEngine.Collider col) [0x00000] in <4fde477dc78347f1b61840795a8e4b70>:0
This error only happening on server startup. But when I load the plugin after server is up, I don't see it.
NullReferenceException: Object reference not set to an instance of an object
Ruhadre
(Filename: <4fde477dc78347f1b61840795a8e4b70> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.SkyTurrets.IsAllowed (AutoTurret turret) [0x0001a] in <4fde477dc78347f1b61840795a8e4b70>:0
at Oxide.Plugins.SkyTurrets+AntiHeli.OnTriggerStay (UnityEngine.Collider col) [0x00000] in <4fde477dc78347f1b61840795a8e4b70>:0

I had this problem too, then uninstalled the plugin, removed all the SkyTurrets.json files in config folder and data folder.
Then reinstalled it freshly. Error gone.

5c11bea8f10ce.jpg glasiore
This error only happening on server startup. But when I load the plugin after server is up, I don't see it.
NullReferenceException: Object reference not set to an instance of an object

Will add Turret now, then restart the server to see

Merged post

Okay found the problem. It has to do with permissions. Will work on fix.
Locked automatically