KeyNotFoundException at OnBetterChatError
It has now been three weeks for what I assume is just a simple hook call change. Can the project be marked unmaintained and can someone adept at C# fix it as it is a super useful plugin and it's a shame it's gone down like this. I understand he asked for it back but it can still be fixed and he can reclaim it when he's prepared to actually maintain it.
edit on line 28 & 29 from
var message = (string)messageData["Text"];
messageData["Text"] = FilterText(player, message);to
var message = (string)messageData["Message"];
messageData["Message"] = FilterText(player, message); Failed to call hook 'OnBetterChat' on plugin 'BetterChatFilter v1.2.1' (KeyNotFoundException: The given key was not present in the dictionary.)
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0
at Oxide.Plugins.BetterChatFilter.Filter (System.Collections.Generic.Dictionary`2[TKey,TValue] messageData) [0x0001c] in <7dae2713f5a04e64b7550ed6649e2a06>:0
at Oxide.Plugins.BetterChatFilter.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] messageData) [0x00000] in <7dae2713f5a04e64b7550ed6649e2a06>:0
at Oxide.Plugins.BetterChatFilter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0004e] in <7dae2713f5a04e64b7550ed6649e2a06>: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
- 1
- 2