When opening a casket, the following error appears in the console.
And if there is a stack of caskets (for example 5), when trying to open one, two caskets are consumed at once, leaving only 3 in the stack.
Failed to call hook 'OnItemAction' on plugin 'FishingTreasure v2.0.7' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.FishingTreasure.OpenCasket (BasePlayer player) [0x0003f] in <c3fe4d586ae24a92816b187b3fac9958>:0
at Oxide.Plugins.FishingTreasure.OnItemAction (Item item, System.String action, BasePlayer player) [0x00060] in <c3fe4d586ae24a92816b187b3fac9958>:0
at Oxide.Plugins.FishingTreasure.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00653] in <c3fe4d586ae24a92816b187b3fac9958>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <112d89ea5d3348c8b949af0ab1a866d2>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0
Could you share an example of a working configuration with some values filled in?