On server wipe error

I get a null in the data file after a server wipe. unloading the plugin, deleting the data, and then loading fixes it but it would be nice if there were a fix.

 

Failed to call hook 'OnPlayerSleepEnded' on plugin 'AntiOfflineRaid v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiOfflineRaid.UpdateLastOnline (System.UInt64 playerId, System.Boolean hasMoved) [0x00000] in <29a967efc36644c6bb2867e251cd2b05>:0
  at Oxide.Plugins.AntiOfflineRaid.OnPlayerSleepEnded (BasePlayer player) [0x00000] in <29a967efc36644c6bb2867e251cd2b05>:0
  at Oxide.Plugins.AntiOfflineRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00720] in <29a967efc36644c6bb2867e251cd2b05>:0                                                                                                                                                                                                                                                                                                         1kb/s in, 6kb/s out
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <88ec380b221d4997a7d40107fc469ad4>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <88ec380b221d4997a7d40107fc469ad4>:0
Failed to run a 300.00 timer in 'AntiOfflineRaid v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AntiOfflineRaid.UpdateLastOnlineAll (System.Boolean afkCheck) [0x00022] in <29a967efc36644c6bb2867e251cd2b05>:0
  at Oxide.Plugins.AntiOfflineRaid.<OnServerInitialized>b__26_0 () [0x00000] in <29a967efc36644c6bb2867e251cd2b05>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <88ec380b221d4997a7d40107fc469ad4>:0

+1 same error after the New Server Update

Was this fixed by chance? Looking into this plugin for one of my servers.

@Calytic or @shady14u can you confirm?

Merged post

OK so I just installed it (using completely default settings) but it doesn't look like it's accurately showing players Offline when using /ao <playername> command. It still shows them online even though they DC'd 25 minutes ago. I also see this in console:

Failed to call hook 'CheckOfflineStatus' on plugin 'AntiOfflineRaid v1.0.2' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.AntiOfflineRaid.CheckOfflineStatus (BasePlayer player, System.String command, System.String[] args) [0x0003f] in <c55f427a5486463b86d11f863a4bb29b>:0 
  at Oxide.Plugins.AntiOfflineRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00d67] in <c55f427a5486463b86d11f863a4bb29b>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0 ​


Is this plugin broken at the moment?

Yes it is. still waiting on a Fix.