NullReferenceException at CreatePlayerSettingsFixed
Failed to call hook 'OnEntityTakeDamage' on plugin 'FriendlyFire v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.FriendlyFire.CreatePlayerSettings (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00006] in <122e3ff1790649ceb335008d831c8149>:0
  at Oxide.Plugins.FriendlyFire.OnEntityTakeDamage (BasePlayer player, HitInfo info) [0x0004c] in <122e3ff1790649ceb335008d831c8149>:0
  at Oxide.Plugins.FriendlyFire.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0016c] in <122e3ff1790649ceb335008d831c8149>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
Update coming soon to fix this and add some dev api stuff
I get an error for every bullet/hit on an NPC.
(20:52:01) | [Oxide] 20:52 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'FriendlyFire v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.FriendlyFire.CreatePlayerSettings (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00006] in <4a6a65c30bb94a8097b913d63ea5a5f8>:0 
  at Oxide.Plugins.FriendlyFire.OnEntityTakeDamage (BasePlayer player, HitInfo info) [0x0004c] in <4a6a65c30bb94a8097b913d63ea5a5f8>:0 
  at Oxide.Plugins.FriendlyFire.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0016c] in <4a6a65c30bb94a8097b913d63ea5a5f8>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
Same thing as the others. When a group fights npc's in different places, it can lag the server like crazy. Reloading the plugin usually helps stop whatever is jolting the server, but I can't let this run as population increases.
Failed to call hook 'OnEntityTakeDamage' on plugin 'FriendlyFire v1.0.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.FriendlyFire.CreatePlayerSettings (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00006] in <887b4705ca0c4bfd85fbee860b8ac865>:0 
  at Oxide.Plugins.FriendlyFire.OnEntityTakeDamage (BasePlayer player, HitInfo info) [0x0004c] in <887b4705ca0c4bfd85fbee860b8ac865>:0 
  at Oxide.Plugins.FriendlyFire.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0016c] in <887b4705ca0c4bfd85fbee860b8ac865>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​
Updated to fix these errors
Thank you.
Locked automatically