NullReferenceException at HandleChatFixed

Any ideas on why keywords are proccing this error?

(17:22:07) | Failed to call hook 'OnBetterChat' on plugin 'Keywords v1.2.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Keywords.HandleChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x000c3] in <d573d99dcdfc42aeb3c4bc69f89830d8>:0 
  at Oxide.Plugins.Keywords.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0001c] in <d573d99dcdfc42aeb3c4bc69f89830d8>:0 
  at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <d573d99dcdfc42aeb3c4bc69f89830d8>: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
You are using an old version of Keywords. Please check your version before posting issues with plugins, thanks.

Getting this message as soon as i edit the .json. It's not important what i do there (e.g. changing a false to a true) as soon as i save it this error appears when someone chats.

Failed to call hook 'OnBetterChat' on plugin 'Keywords v1.2.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Keywords.HandleChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x0009b] in <a7d63bdd04df4923a123dd3222008551>:0
at Oxide.Plugins.Keywords.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0001c] in <a7d63bdd04df4923a123dd3222008551>:0
at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <a7d63bdd04df4923a123dd3222008551>: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
The @Kinauvin issue is still present for me.
I think I fixed this, but unsure as I am not able to reproduce it. Please let me know if the latest version resolves it for you and sorry for the delay!

Still getting this error no matter what we try.

15:29 [Error] Failed to call hook 'OnBetterChat' on plugin 'Keywords v1.2.3' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Keywords.HandleChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x0009b] in <88d3f34b2a654cc9816b3df665bcb185>:0 at Oxide.Plugins.Keywords.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0001c] in <88d3f34b2a654cc9816b3df665bcb185>:0 at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <88d3f34b2a654cc9816b3df665bcb185>: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

cant get it to send to discord? or in game, any help would be brilliant, im not using better chat just this plugin alone, also the server is a vanilla community server

here is my json

"Permission required to trigger keywords": false,
"Include original message with notification": true,
"Match only exact keywords": false,
"Auto-reply for triggered keywords": false,
"Notify configured players in chat": false,
"IDs to notify in chat": [
  "PLAYER_ID",
  "PLAYER_ID_2"
],
"Notify configured group in chat": true,
"Groups to notify in chat": [
  "admin",
  "moderator"
],
"Notify using GUI Announcements": false,
"Banner color to use for GUI (RGBA or color name)": "0.1 0.1 0.1 0.7",
"Text color to use for GUI (RGB or color name)": "1 1 1",
"Notify in Discord channel": true,
"Roles to mention on Discord": [
  ""
],
"Users to mention on Discord": [
  ""
],
"Discord webhook URL": "123456789",
"Keywords to listen for in chat": [
  "admin",
  "lag",
  "cheat"
]
}
Failed to call hook 'OnUserChat' on plugin 'Keywords v1.2.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Keywords.HandleChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x0009b] in :0
  at Oxide.Plugins.Keywords.OnUserChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x00000] in :0
  at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000bb] in :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

I was having this issue too! it appears to be the "Match only exact keywords" option - as soon as I set it to true it works again.

yep same for me, hopefully this gets sorted out 

Hi, i was trying to add this plugin to my heavily modded server, and got these msg in console,'and it dosent work. any help here?

Failed to call hook 'OnBetterChat' on plugin 'Keywords v1.2.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Keywords.HandleChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x0009b] in <46859d7d141d43b4b0956242e6b282fa>:0 
  at Oxide.Plugins.Keywords.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0001c] in <46859d7d141d43b4b0956242e6b282fa>:0 
  at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <46859d7d141d43b4b0956242e6b282fa>: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 <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 
Failed to call hook 'OnBetterChat' on plugin 'Keywords v1.2.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Keywords.HandleChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x0009b] in <46859d7d141d43b4b0956242e6b282fa>:0 
  at Oxide.Plugins.Keywords.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0001c] in <46859d7d141d43b4b0956242e6b282fa>:0 
  at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <46859d7d141d43b4b0956242e6b282fa>: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 <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0 
[Better Chat] [Global] [Nordic] [Discord] A naked: admin
[Better Chat] [Global] [Nordic] [Discord] A naked: admin​
Failed to call hook 'OnBetterChat' on plugin 'Keywords v1.2.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Keywords.HandleChat (Oxide.Core.Libraries.Covalence.IPlayer player, System.String message) [0x0009b] in <5962c2db72dd4562b7e1b6de583caab6>:0
at Oxide.Plugins.Keywords.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0001c] in <5962c2db72dd4562b7e1b6de583caab6>:0
at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <5962c2db72dd4562b7e1b6de583caab6>: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 :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Verified that it does only trigger when "Match only exact keywords" is set to false, so will take a look at it further based on that.

Past two updates broke it and it prints errors in console on someone talking in chat, does not send anything to webhook either. 

Would need any errors you see.

Locked automatically