I can't press the purchase button anymore
everything else is working
I tried deleting everything and reinstalling, but the same problem occurred.
Does anyone know the cause?
--------------------------------------------------Failed to call hook 'cmdBuyItem' on plugin 'ServerRewards v0.4.77' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.ServerRewards.cmdBuyItem (ConsoleSystem+Arg arg) [0x0006b] in <5eab94315e5043ac8e8be5d77218697c>:0
at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e58] in <5eab94315e5043ac8e8be5d77218697c>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
Error that prevents buttons from being pressed
I'm sorry, the same question was asked in the past.
I was able to solve the problem with the following while the server was still running
1. console command → oxide.unload ServerRewards
2. oxide\data\ServerRewards\cooldown_data.json ←The contents should be "Null", so delete the JSON file
3. console command → oxide.load ServerRewards
This symptom occurred after the server went down unexpectedly.
Using the above method, you can now use the purchase button without shutting down the server.
Thank you, that was helpful