NullReferenceException at GetAmmoCountError
I am seeing this in the console.
Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00002] in <cb92e0a98c274815801c5aa5328e7389>:0
at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <cb92e0a98c274815801c5aa5328e7389>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <4452f821def6406d834e4149849fe7ea>:0
I hope it happens when turret was killed. I will re-work it in near time, thanks for report
(20:09:06) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(20:09:07) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(20:09:07) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(20:09:57) | Saved 114,516 ents, cache(0.45), write(0.08), disk(0.02).
(20:09:57) | Saving complete
(20:11:07) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(20:11:08) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(20:19:26) | Checking for new Steam Item Definitions..
(20:23:10) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(20:23:11) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
(20:23:40) | Failed to run a 30.00 timer in 'AntiDrain v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiDrain.GetAmmoCount (StorageContainer container) [0x00008] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Plugins.AntiDrain+<Check>c__AnonStorey0.<>m__0 () [0x00017] in <a9dee2961f7042b9939442d17400e5f4>:0 
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

I am getting this error when connecting turret to power, Turret has unlimited ammo, does not seem to repeat

I will take a look, thanks. That plugin is generaly obsolete, because turrets draining is not possible anymore? Or i am not right?

pXUJ2exetIxu3Np.png Orange

I will take a look, thanks. That plugin is generaly obsolete, because turrets draining is not possible anymore? Or i am not right?

Actualy i dont know. its for the players who dont have unlimited ammo (server time reward) but no one has ever complained about it, if it is redundant i will remove it.