I've noticed I'm getting the below error using the server chat -> discord functionality
My config looks like so:
Merged post
Fixed. Its because its looking for the FilterWords object in the config file but I removed it
16:33:37Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
16:33:37 at Oxide.Plugins.Rustcord.OnPlayerChat (ConsoleSystem+Arg arg) [0x0003c] in <2314c56867464b8e9a76525fce48e293>:0
16:33:37 at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001cd] in <2314c56867464b8e9a76525fce48e293>:0
16:33:37 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
16:33:37 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
16:33:37 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0My config looks like so:
{
"Apikey": "123",
"Channels": [{
"Channelid": "550993492172603392",
"perms": [
"p_chat",
"msg_serverinit"
]
},
{
"Channelid": "550994071871553547",
"perms": [
"p_report"
]
},
{
"Channelid": "550994315556421636",
"perms": [
"p_connect",
"p_disconnect",
"msg_serverinit"
]
},
{
"Channelid": "550994580280180753",
"perms": [
"cmd_allow",
"cmd_players",
"cmd_kick",
"cmd_com",
"p_aconnect"
]
}
],
"Commandprefix": "!",
"Commandroles": {
"players": [
"Players", "Admins"
],
"kick": [
"Admins"
],
"com": [
"Admins"
]
}
}Merged post
Fixed. Its because its looking for the FilterWords object in the config file but I removed it