Hello, is this plugin work correctly? players have permission and can use /sleep command, but if they go sleep for few minutes and stand up, they did not restore heal/hungry/thirsty .

so now to the error, i get for players who are offline and get killed by NPC
[Error] Failed to call hook 'OnPlayerSleepEnded' on plugin 'Sleep v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Game.Rust.Libraries.Player.Message (BasePlayer player, System.String message, System.String prefix, System.UInt64 userId, System.Object[] args) [0x00038] in <b3118d27696d42f7b7646bca920a6e3a>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Message (System.String message, System.String prefix, System.Object[] args) [0x00000] in <b3118d27696d42f7b7646bca920a6e3a>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.String prefix, System.Object[] args) [0x0000f] in <b3118d27696d42f7b7646bca920a6e3a>:0 
  at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message) [0x00008] in <b3118d27696d42f7b7646bca920a6e3a>:0 
  at Oxide.Plugins.Sleep.Message (Oxide.Core.Libraries.Covalence.IPlayer player, System.String key, System.Object[] args) [0x0000f] in <c974936a962144d586066d7cb0d40c73>:0 
  at Oxide.Plugins.Sleep.OnPlayerSleepEnded (BasePlayer basePlayer) [0x00045] in <c974936a962144d586066d7cb0d40c73>:0 
  at Oxide.Plugins.Sleep.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00104] in <c974936a962144d586066d7cb0d40c73>: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 ​