Jump to content

Error with hook OnPlayerConnected

Closed 1.1.12 1.1.13

TuxGeek
TuxGeek

Posted

Hello, I run a carbon server and was looking through my carbon logs. When checking those i found this error. What could be causing this?

[2025.03.28 15:34:29] [ERRO] Failed to call internal hook 'OnPlayerConnected' on plugin 'WTrading v1.1.12' [2848347654] (Value cannot be null.
Parameter name: key)
   at int System.Collections.Generic.Dictionary<BasePlayer, Oxide.Plugins.WTrading+TradePlayer>.FindEntry(BasePlayer key)
   at bool System.Collections.Generic.Dictionary<BasePlayer, Oxide.Plugins.WTrading+TradePlayer>.TryGetValue(BasePlayer key, out TradePlayer value)
   at TradePlayer Oxide.Plugins.WTrading.GetTradePlayer(BasePlayer player) in /home/container/carbon/plugins/WTrading.cs:line 210
   at void Oxide.Plugins.WTrading.OnPlayerConnected(BasePlayer player) in /home/container/carbon/plugins/WTrading.cs:line 829
   at object Oxide.Plugins.WTrading.InternalCallHook(uint hook, object[] args) in WTrading.cs/Internal:line 211

Tom.bat

Posted

The OnPlayerConnected hook is somehow being called with a null player... seems other Carbon users have raised similar complaints for other plugins in the Discord, so might be a bug.

I'll release a fix which works around this issue shortly.

Tom.bat

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

Tom.bat

Posted

Changed Status from Work in Progress to Fixed

Tom.bat

Posted

Changed Status from Fixed to Closed

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.5k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.