(14:47:24) | Failed to call hook 'OnPlayerConnected' on plugin 'TimedProgression v0.1.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TimedProgression.NotifyPhaseInfo (Oxide.Core.Libraries.Covalence.IPlayer player) [0x0003e] in <4abe43c5380446a298056709975e42ed>:0 at Oxide.Plugins.TimedProgression.OnPlayerConnected (BasePlayer player) [0x00000] in <4abe43c5380446a298056709975e42ed>:0 at Oxide.Plugins.TimedProgression.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004ce] in <4abe43c5380446a298056709975e42ed>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
NullReferenceException at NotifyPhaseInfoError
Hi @bloodbeard. I apologize, but I no longer have a Rust server to test plugin changes with. However, if you want to try a quick fix to this problem, open the TimedProgression.cs file in a text editor and search for this function "privatevoidNotifyPhaseInfo(IPlayerplayer)". Add this line of code at the beginning of this function above the line that starts "intcp=":
if(player == null)
return null;Reload the server and see if that fixes the issue. Sorry I can't do more for you at this time. If you could, please reply here and let me know if this worked for you or not. Thanks for reporting the issue!
Unlikely the player is null there. Leaning more toward the timeData being null.
Thanks for chiming in @Wulf!If that's the case, you could try the same thing i suggested @bloodbeard, except try it this way:
if(timeData == null)
return;