NullReferenceException at ReplyError
Failed to call hook 'cmdClan' on plugin 'Clans v0.1.52' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in <084be7fd6c72451ba19c0a6b963e2741>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in <084be7fd6c72451ba19c0a6b963e2741>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in <084be7fd6c72451ba19c0a6b963e2741>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in <084be7fd6c72451ba19c0a6b963e2741>:0 
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00044] in <54ce9cdf0e1e4ef9b46170366c4d27cb>:0 
  at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001dd] in <54ce9cdf0e1e4ef9b46170366c4d27cb>:0 
  at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001de] in <54ce9cdf0e1e4ef9b46170366c4d27cb>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <54ce9cdf0e1e4ef9b46170366c4d27cb>: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

I unloaded Clans, deleted the Clans.json from the Lang folder (solution from this plugin page from another error), and reloaded Clans. It seems to have fixed the error. This is just FYI for K1llY0u.

Thanks for the plugin!

(21:38:50) | Failed to call hook 'cmdClan' on plugin 'Clans v0.1.53' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x0000f] in <b362ea99095f4f86a2ccbf475a2913bb>:0
at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x00030] in <b362ea99095f4f86a2ccbf475a2913bb>:0
at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <b362ea99095f4f86a2ccbf475a2913bb>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <efb9a8684e344ecfa065c7b416e6d2fd>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b0a93b504f034a0db8b1c3d2503c0987>:0
Currently recieving this error when running any command from the plugin.

(18:11:40) | Failed to call hook 'cmdClanHelp' on plugin 'Clans v0.1.53' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x0000f] in <c4048f7d136d4f54a55020c39095efb8>:0 
  at Oxide.Plugins.Clans.cmdClanHelp (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x00026] in <c4048f7d136d4f54a55020c39095efb8>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x007ab] in <c4048f7d136d4f54a55020c39095efb8>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>: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​

This is from March 23rd Rust patch, running Oxide version 4516.



Merged post

Also getting this...

Error while compiling: Clans.cs(4,255+): error CS1061: Type `BasePlayer' does not contain a definition for `ServerCurrentMapNotes' and no extension method `ServerCurrentMapNotes' of type `BasePlayer' could be found. Are you missing an assembly reference?

/clan create asdfg

[No Escape] Unable to find clan after creation: asdfg

/clan invite name

Failed to call hook 'cmdClan' on plugin 'Clans v0.1.54' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in :0 at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in :0 at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in :0 at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in :0 at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00042] in <6cbaa934e45d4546bb33ad647cb18c75>:0 at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001fd] in <6cbaa934e45d4546bb33ad647cb18c75>:0 at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001d3] in <6cbaa934e45d4546bb33ad647cb18c75>:0 at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <6cbaa934e45d4546bb33ad647cb18c75>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :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

Config

{
  "Limitations": {
    "Maximum clan alliance count": 2,
    "Maximum clan member count": 8,
    "Maximum clan moderator count": 2
  },
  "Message colors": {
    "Clan and Alliance chat color": "#3999D5",
    "Clan tag color": "#783CD7",
    "Highlight color": "#D85540",
    "Message color": "#D8D8D8"
  },
  "Settings": {
    "Data save timer (seconds)": 600,
    "Maximum clan tag characters": 6,
    "Minimum clan tag characters": 2,
    "Show clan member connection message": true,
    "Show clan member disconnection message": true
  }
}

It shows this error on the console.

Failed to call hook 'cmdClan' on plugin 'Clans v0.1.54' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in <075c81e5ce6e4c199f66bdc86e3ce735>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in <075c81e5ce6e4c199f66bdc86e3ce735>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in <075c81e5ce6e4c199f66bdc86e3ce735>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in <075c81e5ce6e4c199f66bdc86e3ce735>:0 
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00042] in <8d9a67df17704e1f994514643cd72b66>:0 
  at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001fd] in <8d9a67df17704e1f994514643cd72b66>:0 
  at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001d3] in <8d9a67df17704e1f994514643cd72b66>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <8d9a67df17704e1f994514643cd72b66>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :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 
Firstly, thanks for sharing this plugin, it is really good!

I have a problem here;

Failed to call hook 'cmdClan' on plugin 'Clans v0.1.54' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in :0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in :0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in :0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in :0 
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00042] in <7663187b5ab841eaaac38ca81086e760>:0 
  at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001fd] in <7663187b5ab841eaaac38ca81086e760>:0 
  at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001d3] in <7663187b5ab841eaaac38ca81086e760>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <7663187b5ab841eaaac38ca81086e760>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :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 ​

Can someone help me about this ? I reinstalled (deleted all files and installed again) and still have the same problem.

Hi!

I got this error. Any idea on what I can do to fix this? Thanks!

Failed to call hook 'cmdClan' on plugin 'Clans v0.1.55' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in :0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in :0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in :0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in :0 
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00042] in <6beed3150ada4ece8359c95362a31ef1>:0 
  at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001fd] in <6beed3150ada4ece8359c95362a31ef1>:0 
  at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001d3] in <6beed3150ada4ece8359c95362a31ef1>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <6beed3150ada4ece8359c95362a31ef1>: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 :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 ​

Hi there, im having players unable to join clans, I do notice this in the logs tho..

Failed to call hook 'cmdClan' on plugin 'Clans v0.1.55' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in <31d8ed2fb7594e14b54545e602293ad3>:0
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in <31d8ed2fb7594e14b54545e602293ad3>:0
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in <31d8ed2fb7594e14b54545e602293ad3>:0
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in <31d8ed2fb7594e14b54545e602293ad3>:0
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00042] in <538b0de741cd49df95e5b0d37188cdc9>:0
  at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001fd] in <538b0de741cd49df95e5b0d37188cdc9>:0
  at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001d3] in <538b0de741cd49df95e5b0d37188cdc9>:0
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <538b0de741cd49df95e5b0d37188cdc9>: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 :0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Please fix it. On console log:

[Error] Failed to call hook 'cmdClan' on plugin 'Clans v0.1.55' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in <953f82d966f8458b865f0d3b4dfdad29>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in <953f82d966f8458b865f0d3b4dfdad29>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in <953f82d966f8458b865f0d3b4dfdad29>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in <953f82d966f8458b865f0d3b4dfdad29>:0 
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00042] in <9943d1131f934d35a800507de7de262a>:0 
  at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001fd] in <9943d1131f934d35a800507de7de262a>:0 
  at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001d3] in <9943d1131f934d35a800507de7de262a>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <9943d1131f934d35a800507de7de262a>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0​

Check if the player is connected to the server.

Class Oxide.Plugins.Clans.
Method InviteMember:
if (target.IsConnected)
{
Reply(target, clan.clanTag, Message("clanInv"));
}

FIXED

 Failed to call hook 'cmdClan' on plugin 'Clans v0.1.54' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in <2d7217d15e1149bfbf584b291e3bbd0c>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in <2d7217d15e1149bfbf584b291e3bbd0c>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in <2d7217d15e1149bfbf584b291e3bbd0c>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in <2d7217d15e1149bfbf584b291e3bbd0c>:0 
  at Oxide.Plugins.Clans.Reply (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message, System.String message2) [0x00042] in <a36a2f426a0141d0ac0c4261ea34b072>:0 
  at Oxide.Plugins.Clans.InviteMember (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x001fd] in <a36a2f426a0141d0ac0c4261ea34b072>:0 
  at Oxide.Plugins.Clans.cmdClan (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x001d3] in <a36a2f426a0141d0ac0c4261ea34b072>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00732] in <a36a2f426a0141d0ac0c4261ea34b072>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0