Hello, this is a good concept but this throws a huge console error spam when a player swaps weapons.
[03.24 20:13:04] Failed to call hook 'OnPlayerAttack' on plugin 'ReviveArrows v3.0.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ReviveArrows.OnPlayerAttack (BasePlayer player, HitInfo hitInfo) [0x0001d] in <1877feaa6e8042119c88445c80028fa8>:0
at Oxide.Plugins.ReviveArrows.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00154] in <1877feaa6e8042119c88445c80028fa8>:0
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 <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
[03.24 20:13:08] Failed to call hook 'OnPlayerAttack' on plugin 'ReviveArrows v3.0.0' (NullReferenceException: Object reference not set to an instance of an object)
[03.24 20:13:08] at Oxide.Plugins.ReviveArrows.OnPlayerAttack (BasePlayer player, HitInfo hitInfo) [0x0001d] in <1877feaa6e8042119c88445c80028fa8>:0
[03.24 20:13:08] at Oxide.Plugins.ReviveArrows.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00154] in <1877feaa6e8042119c88445c80028fa8>:0
[03.24 20:13:08] at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
[03.24 20:13:08] at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
[03.24 20:13:08] at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
[03.24 20:14:31] Failed to call hook 'OnActiveItemChanged' on plugin 'ReviveArrows v3.0.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ReviveArrows.OnActiveItemChanged (BasePlayer player, Item oldItem, Item newItem) [0x00017] in <1877feaa6e8042119c88445c80028fa8>:0
at Oxide.Plugins.ReviveArrows.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00116] in <1877feaa6e8042119c88445c80028fa8>:0
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 <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
[03.24 20:14:34] Failed to call hook 'OnActiveItemChanged' on plugin 'ReviveArrows v3.0.0' (NullReferenceException: Object reference not set to an instance of an object)
[03.24 20:14:34] at Oxide.Plugins.ReviveArrows.OnActiveItemChanged (BasePlayer player, Item oldItem, Item newItem) [0x00017] in <1877feaa6e8042119c88445c80028fa8>:0
[03.24 20:14:34] at Oxide.Plugins.ReviveArrows.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00116] in <1877feaa6e8042119c88445c80028fa8>:0
[03.24 20:14:34] at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
[03.24 20:14:34] at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
[03.24 20:14:34] at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0