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