NullReferenceException at getClanMembersOnline
Failed to call hook 'OnEntityTakeDamage' on plugin 'AntiOfflineRaid v0.3.5' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiOfflineRaid.getClanMembersOnline (System.UInt64 targetID) [0x0001e] in <dc104b0c05c54778aace9d31b9f2deb5>:0 
  at Oxide.Plugins.AntiOfflineRaid.IsClanOffline (System.UInt64 targetID) [0x00000] in <dc104b0c05c54778aace9d31b9f2deb5>:0 
  at Oxide.Plugins.AntiOfflineRaid.OnStructureAttack (BaseEntity entity, HitInfo hitinfo) [0x00056] in <dc104b0c05c54778aace9d31b9f2deb5>:0 
  at Oxide.Plugins.AntiOfflineRaid.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x00022] in <dc104b0c05c54778aace9d31b9f2deb5>:0 
  at Oxide.Plugins.AntiOfflineRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00311] in <dc104b0c05c54778aace9d31b9f2deb5>: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 
What clans plugin are you using?

Merged post

  1. Nothing changed recently with AOR's clan integration
  2. Cannot be a Rust update issue since clans aren't a part of Rust.
In response to Calytic ():
What clans plugin are you using?

Merged post

Nothing changed recently with AO...
Clans Reborn

Merged post

thoughts?

Merged post

Spoke to Fuji, according to him nothing's changed either soooo great :D
In response to Calytic ():
What clans plugin are you using?

Merged post

Nothing changed recently with AO...
Looks to me like IPlayer is null, probably from the entity not being a player and there not being a null check in the IPlayer after you look it up.

Current:
        public int getClanMembersOnline (ulong targetID)
        {
            var player = covalence.Players.FindPlayerById (targetID.ToString ());
            var start = (player.IsConnected == false) ? 0 : 1;​
With null check:
        public int getClanMembersOnline (ulong targetID)
        {
            var player = covalence.Players.FindPlayerById (targetID.ToString ());
            var start = (player?.IsConnected == false) ? 0 : 1;​


Other solution would be to check if the entity is a player before sending it down the chain.

K made that ? change, will keep an eye, thanks
 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'AntiOfflineRaid v0.3.6' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiOfflineRaid.getClanMembersOnline (System.UInt64 targetID) [0x0001e] in <a615f705339349ddbda5cdfebe6c5321>:0 
  at Oxide.Plugins.AntiOfflineRaid.IsClanOffline (System.UInt64 targetID) [0x00000] in <a615f705339349ddbda5cdfebe6c5321>:0 
  at Oxide.Plugins.AntiOfflineRaid.OnStructureAttack (BaseEntity entity, HitInfo hitinfo) [0x00056] in <a615f705339349ddbda5cdfebe6c5321>:0 
  at Oxide.Plugins.AntiOfflineRaid.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x00022] in <a615f705339349ddbda5cdfebe6c5321>:0 
  at Oxide.Plugins.AntiOfflineRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00462] in <a615f705339349ddbda5cdfebe6c5321>: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