Failed to call hook 'GiveGiftCommand' on plugin 'RandomWrappedGift v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.RandomWrappedGift.CreateGift (BasePlayer bp) [0x0004b] in <699129238fe940e4b9200c38c3ea6287>:0
at Oxide.Plugins.RandomWrappedGift.GiveGifts () [0x0009d] in <699129238fe940e4b9200c38c3ea6287>:0
at Oxide.Plugins.RandomWrappedGift.GiveGiftCommand (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x00056] in <699129238fe940e4b9200c38c3ea6287>:0
at Oxide.Plugins.RandomWrappedGift.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00180] in <699129238fe940e4b9200c38c3ea6287>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0 NullReferenceException at CreateGiftError
Hey, this doesn't really explain anything. When does this happen? What are you typing?
give (console)
works about 9 out 10.
and from time to time it shows this in console (pasted previously) and wont execute give (people wont get gifts)
Can you send your config? Most likely an issue with config.
{
"Gift Items (Item Shortname)": {
"charcoal": 1,
"crude.oil": 1,
"diesel_barrel": 1,
"explosives": 1,
"gunpowder": 1,
"metal.ore": 1,
"metal.fragments": 1,
"lowgradefuel": 1,
"hq.metal.ore": 1,
"metal.refined": 1,
"scrap": 1,
"electric.sirenlight": 1,
"electric.sprinkler": 1,
"storage.monitor": 1,
"electric.teslacoil": 1,
"electric.switch": 1,
"electric.timer": 1,
"target.reactive": 1,
"electric.random.switch": 1,
"electric.pressurepad": 1,
"electric.orswitch": 1,
"modularcarlift": 1,
"generator.wind.scrap": 1,
"waterpump": 1,
"powered.water.purifier": 1
},
"Wrapped Gift Interval (Seconds)": 36666.0,
"Play Effect When Opened?": true,
"Give gift to sleepers with permissions?": false
}