Sounds like your BasePlayer is null. If the player isn't online, they won't always exist.sinucaZe
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}"; }
ArgumentException: player at GetClanOfNot An Issue
Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <b7e74abd59d64af588e6e26d7194bce2>:0at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <b7e74abd59d64af588e6e26d7194bce2>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Im not sure as to why im getting this but it has caused my server to crash and restart.
Has anyone had this and resolved it?
thanks in advance.
Hi, i get something in he console after anyone joins or disconnect :
(21:46:59) | Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)
at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <9dc89200b2b54ac7940afc31db062a01>:0
at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <9dc89200b2b54ac7940afc31db062a01>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Idk if it's broken or just a message you can skip
sinucaZe
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}"; }
That plugin supports the universal Clans plugin, not this plugin. They share the same methods, not the same signature though. The change you made would break the universal Clans plugin support.
Hello, anyones been having these error messages recently?
Its making people on my server being kicked (at least I belive so since the kicks happen at the same time I get these messages in like a course of 1/3m)
Thank you
(22:42:13) | Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)
at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <bee9c79e82884a37b1a25f6dcb774030>:0
at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <bee9c79e82884a37b1a25f6dcb774030>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
LegallyOlderHello, anyones been having these error messages recently?
Its making people on my server being kicked (at least I belive so since the kicks happen at the same time I get these messages in like a course of 1/3m)
Thank you(22:42:13) | Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player) at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <bee9c79e82884a37b1a25f6dcb774030>:0 at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <bee9c79e82884a37b1a25f6dcb774030>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
Please see above.
I been searching for this error for a while now is it from me ? or is it from the plugin?
Failed to call hook 'GetClanOf' on plugin 'Clans v1.7.6' (ArgumentException: player)
at Oxide.Plugins.Clans.GetClanOf (System.Object player) [0x00065] in <d57687e2fc27415788073698668237d0>:0
at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00899] in <d57687e2fc27415788073698668237d0>:0
3kb/s in, 21kb/s out
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
- 1
- 2