I have simple code like this:
void OnPlayerSleepEnded(BasePlayer player) {
UpdatePlayerUI(player);
}But after update oxide, i getting error
Failed to call hook 'OnPlayerSleepEnded' on plugin 'SimpleKDR v1.0.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.SimpleKDR.GetStatistic (System.UInt64 playerID) [0x00038] in <6dadac19b6774273a8afa98b62400750>:0
at Oxide.Plugins.SimpleKDR.UpdatePlayerUI (BasePlayer player) [0x0000d] in <6dadac19b6774273a8afa98b62400750>:0
at Oxide.Plugins.SimpleKDR.OnPlayerSleepEnded (BasePlayer player) [0x00000] in <6dadac19b6774273a8afa98b62400750>:0
2kb/s in, 6kb/s out
at Oxide.Plugins.SimpleKDR.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000ca] in <6dadac19b6774273a8afa98b62400750>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
What wrong?