ArgumentNullException in OnPlayerChatError
[7/10/2019 1:49:03 PM] Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v1.8.3' (ArgumentNullException: Value cannot be null.
Parameter name: source)
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0000d] in :0 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in :0 
  at Oxide.Plugins.Rustcord+c__AnonStorey9.<>m__0 (Oxide.Ext.Discord.DiscordObjects.Guild x) [0x00006] in <1fb22a3aa1d3454e997d9687cd3b6cb3>:0 
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in :0 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in :0 
  at Oxide.Plugins.Rustcord.GetChannel (Oxide.Ext.Discord.DiscordClient c, System.String chan_id, System.Action`1[T] cb, System.String guildid) [0x00026] in <1fb22a3aa1d3454e997d9687cd3b6cb3>:0 
  at Oxide.Plugins.Rustcord+c__AnonStorey1.<>m__0 (Oxide.Plugins.Rustcord+Settings+Channel ch) [0x00017] in <1fb22a3aa1d3454e997d9687cd3b6cb3>:0 
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in :0 
  at Oxide.Plugins.Rustcord.OnPlayerChat (ConsoleSystem+Arg arg) [0x001ea] in <1fb22a3aa1d3454e997d9687cd3b6cb3>:0 
  at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00309] in <1fb22a3aa1d3454e997d9687cd3b6cb3>: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 

 

I am getting this error when trying to chat in game and the server chat is not showing up on discord?

[Oxide] 21:44 [Error] Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v1.8.5' (ArgumentException: oldValue is the empty string.)
  at System.String.ReplaceInternal (System.String oldValue, System.String newValue) [0x00016] in <a8ed250850854b439cedc18931a314fe>:0
  at System.String.Replace (System.String oldValue, System.String newValue) [0x0000e] in <a8ed250850854b439cedc18931a314fe>:0
  at Oxide.Plugins.Rustcord.OnPlayerChat (ConsoleSystem+Arg arg, ConVar.Chat+ChatChannel channel) [0x00142] in <3ff8785c755f4c2eab18991e5a126496>:0
  at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00309] in <3ff8785c755f4c2eab18991e5a126496>: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
After update chat messages from players talking on rust isn't showing up. Messages from discord are showing up on rust chat though. Can you please fix it? Already reloaded plugin several times. Thanks
Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v1.10.1' (ArgumentException: oldValue is the empty string.)
  at System.String.ReplaceInternal (System.String oldValue, System.String newValue) [0x00016] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.String.Replace (System.String oldValue, System.String newValue) [0x0000e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at Oxide.Plugins.Rustcord.OnPlayerChat (BasePlayer player, System.String message, ConVar.Chat+ChatChannel channel) [0x00132] in <7b467be4c35e4da19cdd78fc321c5d7a>:0 
  at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0032c] in <7b467be4c35e4da19cdd78fc321c5d7a>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0 
DOn't know, can't replicate it.
I will try the updated version and let you know...
5b7b09575e872.jpg?uid=5b7b096ae264e OuTSMoKE
DOn't know, can't replicate it.
The problem is here:
                for (int i = _settings.FilterWords.Count - 1; i >= 0; i--)
                {
                    while (message.Contains(" " + _settings.FilterWords[i] + " ") || message.Contains(_settings.FilterWords[i]))
                        message = message.Replace(_settings.FilterWords[i], _settings.FilteredWord ?? "");
                }​

There's an empty word in the configuration according to the error.

Is there going to be a fix for rust chat showing up on discord?
5e373eca13e50.jpg imkat98
Is there going to be a fix for rust chat showing up on discord?

Chat relay is working fine. If it's not, you have something configged wrong.

5b7b09575e872.jpg?uid=5b7b096ae264e OuTSMoKE

Chat relay is working fine. If it's not, you have something configged wrong.

Nothing wrong with my config.. Checked it twice. If there was it would revert.

5e13a8d5b2bc5.jpg Wulf
The problem is here:
                for (int i = _settings.FilterWords.Count - 1; i >= 0; i--)
                {
                    while (message.Contains(" " + _settings.FilterWords[i] + " ") || message.Contains(_settings.FilterWords[i]))
                        message = message.Replace(_settings.FilterWords[i], _settings.FilteredWord ?? "");
                }​

There's an empty word in the configuration according to the error.



Merged post

Failed to call hook 'OnPlayerChat' on plugin 'Rustcord v1.11.1' (ArgumentException: oldValue is the empty string.)
  at System.String.ReplaceInternal (System.String oldValue, System.String newValue) [0x00016] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.String.Replace (System.String oldValue, System.String newValue) [0x0000e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at Oxide.Plugins.Rustcord.OnPlayerChat (BasePlayer player, System.String message, ConVar.Chat+ChatChannel channel) [0x00132] in <cf4d3e56e4af42f09050370325be207a>:0 
  at Oxide.Plugins.Rustcord.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0035a] in <cf4d3e56e4af42f09050370325be207a>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0 


Merged post

This is a plugin issue, not a config issue
the issue is NOT fixed.

Every person that talks in the chat, this pops up

"“Calling 'OnPlayerChat' on 'Rustcord v1.11.1' took 106ms”" 

I can clearly see that the rustcord plugin is getting WAY to big to run properly without issues. Even the server starts to lag from time to time because it cant handle anything. 
My guess would be another plugin conflicting with it. What other plugins are doing something during OnPlayerChat?
The onplayerchat is only being triggered from rust cord as far i know of. Besides better chat, i dont use any plugins that would have any conflicts with rustcord, otherwise, other people would complain about the same as they would be getting the same issues. Presume a lot would use the same plugins like kits or Dangerous Treasures for example. ( just with the "ondeathnotice" ) the issue I posted a few days ago. The same issue happens with "onplayerchat" 

my guess its the plugin getting too big. I posted my opinion of it on the topic post from @goldie and wulff.
I'm not breaking up the plugin. I've always hated when people do that shit. I have a whole support Discord full of people running it without issue, so it's definitely something on your ends.

If you DO find that it's a plugin interfering with it, please let us know so I can add it to the not compatible list in the overview.
"I'm not breaking up the plugin. I've always hated it when people do that shit." 

I Presume you mentioning magic panel? Magic panel was a savior for me. I can add the things I need without loading unneeded code because I dont use those parts of the game. For me, I hate it when people think everything is okay and that it's not his fault. Even my hosting says the same. 

Hosting guy says as follows: "Remove rust cord completely if you still having issues after your reboot. We can clearly see that this is causing the lag on your server" So basically ur now also saying that my hosting partner is saying lies over and over again.

"I have a whole support Discord full of people running it without issue, so it's definitely something on your ends."

Sure, even with a clean install I still get the same drama. so ok, just play the blame game and ill play along.

what shall we blame next? Discord status?