NullReferenceException at OnUserChatFixed

I have been unable to get any messages to post to discord since first installing this last night. I do not have better chat installed.

Failed to call hook 'OnUserChat' 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 p
layer, System.String message) [0x000c3] in <222f6866b2b945f1a08d3a883ed8ad53>:0
  at Oxide.Plugins.Keywords.OnUserChat (Oxide.Core.Libraries.Covalence.IPlayer p
layer, System.String message) [0x00000] in <222f6866b2b945f1a08d3a883ed8ad53>:0
  at Oxide.Plugins.Keywords.DirectCallHook (System.String name, System.Object& r
et, System.Object[] args) [0x000bb] in <222f6866b2b945f1a08d3a883ed8ad53>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod meth
od, System.Object[] args) [0x00079] in <1e2d7ad0801a4037ab6a24578c814b54>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[]
 args) [0x000d8] in <1fe782f4b27a43ae85d29ebb2d56c007>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] arg
Could you provide your configuration please?
{
    "Permission required to trigger keywords": false,
    "Include original message with notification": true,
    "Match only exact keywords": true,
    "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": [
        "725086057481109514"
    ],
    "Users to mention on Discord": [
        "138557019216019457"
    ],
    "Discord webhook URL": "xxx",
    "Keywords to listen for in chat": [
        "admin",
        "crash",
        "bug"
    ]
}
Mine still isnt working even with the new version :D
browney
Mine still isnt working even with the new version :D
The new version to fix this specific error hasn't been posted yet.
I still cannot get discord webhook to work, Wolf.
gimmilfactory
I still cannot get discord webhook to work, Wolf.

Can't reproduce the issue. Clean setup with the configuration enabled for Discord and webhook added... triggered without issue.

5e13a8d5b2bc5.jpg Wulf

Can't reproduce the issue. Clean setup with the configuration enabled for Discord and webhook added... triggered without issue.

Hmm I've tried several webhooks and config refreshing. Still cannot get anything to post in the channel. The two other plugins I've setup that use webhooks work just fine, but not this one - Even tried disable exact keyword match.

{
  "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": [
    "305751989176762388"
  ],
  "Users to mention on Discord": [
    "138557019216019457"
  ],
  "Discord webhook URL": "https://discordapp.com/api/webhooks/727569861118787705/5zuZduGpATHMNoQQHX_igskgmc4yBnRMcpmbJU5suugDE4blyqUOii1QcLGcU2FVBIoT",
  "Keywords to listen for in chat": [
    "admin",
    "crash",
    "bug"
  ]
}

I found the culprit. NoGreen.

https://umod.org/plugins/no-green

gimmilfactory

I found the culprit. NoGreen.

https://umod.org/plugins/no-green

Actually... that appears to be an issue with Oxide, where that plugin is calling a hook which causes the hook in this plugin to not be called. We haven't worked out a way to avoid that yet, but hopefully can fix it soon in Oxide. So at the moment, any game-specific plugin stopping a hook like OnPlayerChat would prevent a universal chat plugin from being called.

Locked automatically