NullReferenceException at VerifyNotBuildingBlockedFixed
Failed to call hook 'SpawnBombTruckCommand' on plugin 'BombTrucks v0.5.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.BombTrucks.VerifyNotBuildingBlocked (Oxide.Core.Libraries.Covalence.IPlayer player) [0x00006] in <844ff9286c4c4207b72ce01f919e7cf0>:0
  at Oxide.Plugins.BombTrucks.SubCommand_SpawnBombTruck (Oxide.Core.Libraries.Covalence.IPlayer player, System.String[] args) [0x00058] in <844ff9286c4c4207b72ce01f919e7cf0>:0
  at Oxide.Plugins.BombTrucks.SpawnBombTruckCommand (Oxide.Core.Libraries.Covalence.IPlayer player, System.String cmd, System.String[] args) [0x00049] in <844ff9286c4c4207b72ce01f919e7cf0>:0
  at Oxide.Plugins.BombTrucks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00af9] in <844ff9286c4c4207b72ce01f919e7cf0>: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) [0x000d8] in :0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0
You only pasted an error. How can I reproduce this error?

I'm assuming you ran this in the server console since there isn't currently a check for that so it will error. There is another thread suggesting support for that. I will also change the behavior here to have a user friendly error or simply fail silently instead of this error.
5f1792699e67b.jpg WhiteThunder
You only pasted an error. How can I reproduce this error?
The user was trying to use it with Server Rewards I believe, but unsure how exactly.

Yeah I tried to add it as a command in ServerRewards  /rewards add command

Typed it in perfect with the $player.id at the end, but it just gives that error message when I try to buy it in the /s

The tank command I have works fine but not bomb truck

Added givebombtruck <player> <truck name> command in v0.6.0 which you can use to give players bomb trucks. Also made the bombtruck command do nothing instead of erroring when run in the server console.
Locked automatically