NullReferenceException at OnServerInitializedError
Getting the following error since the 2019-07-04 Rust update and even after the 2019-07-09 Oxide update.
Failed to call hook 'OnServerInitialized' on plugin 'Clans v0.1.52' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Clans.OnServerInitialized () [0x00018] in <81aa49a06f7249c3ae7777def35d57f7>:0
at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015d] in <81aa49a06f7249c3ae7777def35d57f7>: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
Getting this also

Merged post

Realised you need to delete your config and reload the plugin to fix this

18:56:48) | Clans was compiled successfully in 1062ms

(18:56:48) | Unloaded plugin Clans v0.1.52 by k1lly0u

(18:56:48) | Failed to call hook 'OnServerInitialized' on plugin 'Clans v0.1.52' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Clans.OnServerInitialized () [0x00018] in <08ae5277037849ac96fe427027860a1c>:0

at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015d] in <08ae5277037849ac96fe427027860a1c>: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

(18:56:48) | Loaded plugin Clans v0.1.52 by k1lly0u



Merged post

ok thx
New-ish to modding a server. But ran into a little hic-up with installing clan plugin.  Cant get any commands to work within chat. /clanhelp /clan create  etc. Only editing ive done was changed the alliance count to 6 from 2.  I also installed the better chat, which is working. the .cs file is loaded into the oxide plugin.  Looked up on threads but didnt see any answer or i just over looked. Do i just need to reinstall the plugin? Any idea? Thanks.
Check your oxide/logs for errorsplease.
no errors found with clans. I do have 2 errors with betterloot and infopanel. Forgot to add, its not that it wont work. It acts as though i never typed the / command. According to logs, it is loaded. Any common mods/plugins that prevent this from working?
So what exactly happens when you use one of the commands?
I am having the same issue.  When I type any /clan command in chat it does nothing at all.  No server errors either.  Wondering the same about another mod affecting it.  I'm going to keep looking around to see if I can find it.
WJAddict
I am having the same issue.  When I type any /clan command in chat it does nothing at all.  No server errors either.  Wondering the same about another mod affecting it.  I'm going to keep looking around to see if I can find it.
Which game? Could you provide your oxide/logs? It wouldn't be a conflict.
Sorry, was trying to do clans in Rust.  This is what is showing up in the log

Merged post

I deleted the mod and installed a fresh one and it works now.  Thanks for answering so quickly.  I appreciate it!

Yes I have the latest Better Chat (v5.1.8)

(09:26:17) | [Oxide] 12:26 [Error] Failed to call hook 'OnServerInitialized' on plugin 'Clans v0.1.52' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Clans.OnServerInitialized () [0x00018] in <d4c251ce2a6843a18198052d020caafa>:0 
  at Oxide.Plugins.Clans.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015d] in <d4c251ce2a6843a18198052d020caafa>: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


Merged post

---Update---

It took me doing o.unload Clans, then deleting everything that tied to the plugin (data, lang/en, config), then I did o.load Clans and it all works.

I strongly believe it was tied to me being silly and had tried RustIO:Clans which uses the same names for config, data, lang but are formatted differently. So when it tries to load this Clans when you have RustIO:Clans config, data or lang files.