ArgumentException: player at GetClanOfNot An Issue

On first load, the plugin appears to work properly. When I disconnect and reconnect, the only person in the clan is myself, and I see this error in the console every minute or so:

(18:27:16) | Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)
  at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <bca37a40f36e4752bca563bacc1c550f>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <bca37a40f36e4752bca563bacc1c550f>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0
Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)
  at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <3c6aa7e1f5a24ce0b21db3332b39eb0a>:0
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <3c6aa7e1f5a24ce0b21db3332b39eb0a>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <008b12f41ec4452da1a5497eeb849299>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

idk why i get the Connected Error!.

Merged post

Is there a way to fix errors?
This plugin needs an update seems like mine doesnt even show the clan tags anymore!
I agree, it ended up being so unreliable for me I went with the other Clans plugin. It's a shame because I liked this one better, and when this one worked, it worked much more seamlessly. But I need Clans working period, so I have no choice for the moment.
Getting these every now and then but when it happens it lags the server super hard until it churns thru it for every player connected.
keep getting spammed
I have this too any luck? 
Any luck with this 1?
yeah I'm getting this error also :(
Just realised this is the wrong support page.  This is for Clans:io .. Im using Clans 

So, is this getting addressed ever?

There is a problem with the Discord Chat plugin

Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)
  at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <c064bf8dabb640d597d4c4506c882752>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <c064bf8dabb640d597d4c4506c882752>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <70dc8de1abd4423db5f501c6845edf22>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0
i have this issue too, where is support! in active staff
This error is triggered by a plugin using this plugin passing a null player (invalid) to this plugin. You'd need to find which plugin is calling GetClanOf and ask the author/maintainer of it to fix it passing improper info.
I solve on my server doing an conversion from Iplayer to BasePlayer on player argument on GetPlayerName function on DiscordChat plugin.
        //TODO FIX GetClanOf error: Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)
        private string GetPlayerName(IPlayer player)
        {
            //RABISKADA
            //string clanTag = Clans?.Call<string>("GetClanOf", player);
            BasePlayer p = player.Object as BasePlayer;
            string clanTag = Clans?.Call<string>("GetClanOf", p);
            if (!string.IsNullOrEmpty(clanTag))
            {
                clanTag = $"[{clanTag}] ";
            }

            return $"{clanTag}{player.Name}";
        }​
 
Locked automatically