Failed to call hook 'OnTeamLeave' on plugin 'Rustcord v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)

Hi,

I'm getting this NRE:

Failed to call hook 'OnTeamLeave' on plugin 'Rustcord v2.8.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Rustcord.OnTeamLeave (RelationshipManager+PlayerTeam team, BasePlayer player) [0x00056] in <376cc71d00204ea084543e51cc01faed>:0 
  at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01081] in <376cc71d00204ea084543e51cc01faed>: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 ​

Try updating your plugin to the latest version From what I see you're using the previous version. Just make sure you make any backup of your configs before doing the update as this new version will overwrite your config or not work properly. you can read the changes on the plugin page!

always the same error.

 

(14:09:03) | Failed to call hook 'OnTeamLeave' on plugin 'Rustcord v3.0.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Rustcord.OnTeamLeave (RelationshipManager+PlayerTeam team, BasePlayer player) [0x00069] in <1d52e2ded0f340409cd79f1a1947d5ed>:0 
  at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01301] in <1d52e2ded0f340409cd79f1a1947d5ed>: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

I concur that this is an issue just tested on my dev server. Will have to wait for dev to have a look at it 

Seems to be something with onTeamKick as well.

Failed to call hook 'OnTeamKick' on plugin 'Rustcord v3.0.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Rustcord.OnTeamKick (RelationshipManager+PlayerTeam team, BasePlayer player, System.UInt64 target) [0x00096] in <141d734c6cb5427982f86109d5a4a563>:0
at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01334] in <141d734c6cb5427982f86109d5a4a563>: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