Vehicles free after restart, buy command not working
Every time I restart the server every vehicle is free and when you type /buy nothing happens. When that happens I have to take out the plug-in and put it back in for it to work properly again. Annyone know a fix? 
When you type /buy, nothing is displayed?
yeah nothing is displayed
Please send your config.
{
  "Settings": {
    "Store Vehicle On Plugin Unloaded / Server Restart": true,
    "Clear Vehicle Data On Map Wipe": true,
    "Interval to check vehicle for wipe (Seconds)": 300.0,
    "Spawn vehicle in the direction you are looking at": true,
    "Check if any player mounted when recalling a vehicle": true,
    "Check if any player mounted when killing a vehicle": true,
    "Dismount all players when a vehicle is recalled": true,
    "Prevent vehicles from spawning or recalling in safe zone": true,
    "Prevent vehicles from damaging players": true,
    "Prevent other players from mounting vehicle": true,
    "Prevent mounting on driver's seat only": true,
    "Prevent other players from looting fuel container and inventory": false,
    "Use Teams": false,
    "Use Clans": true,
    "Use Friends": true,
    "Vehicle No Decay": false,
    "Vehicle No Fire Ball": true,
    "Vehicle No Server Gibs": true,
    "Chinook No Map Marker": true,
    "Use Raid Blocker (Need NoEscape Plugin)": false,
    "Use Combat Blocker (Need NoEscape Plugin)": false
  },
  "Chat Settings": {
    "Use Universal Chat Command": true,
    "Help Chat Command": "license",
    "Buy Chat Command": "buy",
    "Spawn Chat Command": "spawn",
    "Recall Chat Command": "recall",
    "Kill Chat Command": "kill",
    "Chat Prefix": "<color=#00FFFF>[VehicleLicense]</color>: ",
    "Chat SteamID Icon": #################
  },
  "Normal Vehicle Settings": {
    "Sedan Vehicle": {
      "Purchasable": true,
      "Display Name": "Sedan",
      "Use Permission": true,
      "Permission": "vehiclelicence.sedan",
      "Distance To Spawn": 5.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 3.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 600,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "car",
        "sedan"
      ],
      "Spawn Cooldown (Seconds)": 300.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 150.0,
          "recallCooldown": 10.0
        }
      }
    },
    "Chinook Vehicle": {
      "Purchasable": true,
      "Display Name": "Chinook",
      "Use Permission": true,
      "Permission": "vehiclelicence.chinook",
      "Distance To Spawn": 15.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 6.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 10000,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "ch47",
        "chinook"
      ],
      "Spawn Cooldown (Seconds)": 1800.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 1500.0,
          "recallCooldown": 10.0
        }
      }
    },
    "Rowboat Vehicle": {
      "Purchasable": true,
      "Display Name": "Row Boat",
      "Use Permission": true,
      "Permission": "vehiclelicence.rowboat",
      "Distance To Spawn": 5.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 2.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 500,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "row",
        "rowboat"
      ],
      "Spawn Cooldown (Seconds)": 300.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 150.0,
          "recallCooldown": 10.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": true,
      "Refund Inventory On Kill": true,
      "Refund Inventory On Crash": true,
      "Drop Inventory Items When Vehicle Recall": false
    },
    "RHIB Vehicle": {
      "Purchasable": true,
      "Display Name": "Rigid Hulled Inflatable Boat",
      "Use Permission": true,
      "Permission": "vehiclelicence.rhib",
      "Distance To Spawn": 10.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 3.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 3000,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "rhib"
      ],
      "Spawn Cooldown (Seconds)": 240.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 225.0,
          "recallCooldown": 10.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": true,
      "Refund Inventory On Kill": true,
      "Refund Inventory On Crash": true,
      "Drop Inventory Items When Vehicle Recall": false
    },
    "Hot Air Balloon Vehicle": {
      "Purchasable": true,
      "Display Name": "Hot Air Balloon",
      "Use Permission": true,
      "Permission": "vehiclelicence.hotairballoon",
      "Distance To Spawn": 20.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 5.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 1000,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "hab",
        "hotairballoon"
      ],
      "Spawn Cooldown (Seconds)": 900.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 450.0,
          "recallCooldown": 10.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": true,
      "Refund Inventory On Kill": true,
      "Refund Inventory On Crash": true,
      "Drop Inventory Items When Vehicle Recall": false
    },
    "Ridable Horse Vehicle": {
      "Purchasable": true,
      "Display Name": "Ridable Horse",
      "Use Permission": true,
      "Permission": "vehiclelicence.ridablehorse",
      "Distance To Spawn": 6.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 1.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 500,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "horse",
        "ridablehorse"
      ],
      "Spawn Cooldown (Seconds)": 1500.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 1500.0,
          "recallCooldown": 10.0
        }
      },
      "Refund Inventory On Kill": true,
      "Refund Inventory On Crash": true,
      "Drop Inventory Items When Vehicle Recall": false
    },
    "Mini Copter Vehicle": {
      "Purchasable": true,
      "Display Name": "Mini Copter",
      "Use Permission": true,
      "Permission": "vehiclelicence.minicopter",
      "Distance To Spawn": 8.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 2.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 2500,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "mini",
        "minicopter"
      ],
      "Spawn Cooldown (Seconds)": 300.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 900.0,
          "recallCooldown": 10.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": true
    },
    "Transport Helicopter Vehicle": {
      "Purchasable": true,
      "Display Name": "Transport Copter",
      "Use Permission": true,
      "Permission": "vehiclelicence.transportcopter",
      "Distance To Spawn": 10.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 4.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 5000,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {},
      "Commands": [
        "tcop",
        "transportcopter"
      ],
      "Spawn Cooldown (Seconds)": 1200.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 1200.0,
          "recallCooldown": 10.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": true
    }
  },
  "Modular Vehicle Settings": {
    "SmallCar": {
      "Purchasable": true,
      "Display Name": "Small Modular Car",
      "Use Permission": true,
      "Permission": "vehiclelicence.smallmodularcar",
      "Distance To Spawn": 5.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 3.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 3000,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {
        "metal.refined": {
          "amount": 10,
          "displayName": "High Quality Metal"
        }
      },
      "Recall Prices": {
        "scrap": {
          "amount": 5,
          "displayName": "Scrap"
        }
      },
      "Commands": [
        "small",
        "smallcar"
      ],
      "Spawn Cooldown (Seconds)": 7200.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 3600.0,
          "recallCooldown": 10.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": true,
      "Refund Inventory On Kill": true,
      "Refund Inventory On Crash": true,
      "Refund Engine Items On Kill": true,
      "Refund Engine Items On Crash": true,
      "Refund Module Items On Kill": true,
      "Refund Module Items On Crash": true,
      "Drop Inventory Items When Vehicle Recall": false,
      "Chassis Type (Small, Medium, Large)": "Small",
      "Vehicle Module Items": [
        {
          "shortName": "vehicle.1mod.cockpit.with.engine",
          "healthPercentage": 50.0
        },
        {
          "shortName": "vehicle.1mod.storage",
          "healthPercentage": 50.0
        }
      ],
      "Vehicle Engine Items": [
        {
          "shortName": "carburetor1",
          "conditionPercentage": 20.0
        },
        {
          "shortName": "crankshaft1",
          "conditionPercentage": 20.0
        },
        {
          "shortName": "piston1",
          "conditionPercentage": 20.0
        },
        {
          "shortName": "sparkplug1",
          "conditionPercentage": 20.0
        },
        {
          "shortName": "valve1",
          "conditionPercentage": 20.0
        }
      ]
    },
    "LargeCar": {
      "Purchasable": true,
      "Display Name": "Large Modular Car",
      "Use Permission": true,
      "Permission": "vehiclelicence.largemodularcar",
      "Distance To Spawn": 6.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 3.0,
      "Remove License Once Crashed": false,
      "Purchase Prices": {
        "scrap": {
          "amount": 6000,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {
        "metal.refined": {
          "amount": 100,
          "displayName": "High Quality Metal"
        }
      },
      "Recall Prices": {
        "scrap": {
          "amount": 10,
          "displayName": "Scrap"
        }
      },
      "Commands": [
        "large",
        "largecar"
      ],
      "Spawn Cooldown (Seconds)": 10800.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 5400.0,
          "recallCooldown": 10.0
        }
      },
      "Amount Of Fuel To Spawn": 0,
      "Refund Fuel On Kill": true,
      "Refund Fuel On Crash": true,
      "Refund Inventory On Kill": true,
      "Refund Inventory On Crash": true,
      "Refund Engine Items On Kill": true,
      "Refund Engine Items On Crash": true,
      "Refund Module Items On Kill": true,
      "Refund Module Items On Crash": true,
      "Drop Inventory Items When Vehicle Recall": false,
      "Chassis Type (Small, Medium, Large)": "Large",
      "Vehicle Module Items": [
        {
          "shortName": "vehicle.1mod.engine",
          "healthPercentage": 50.0
        },
        {
          "shortName": "vehicle.1mod.cockpit.armored",
          "healthPercentage": 50.0
        },
        {
          "shortName": "vehicle.1mod.passengers.armored",
          "healthPercentage": 50.0
        },
        {
          "shortName": "vehicle.1mod.storage",
          "healthPercentage": 50.0
        }
      ],
      "Vehicle Engine Items": [
        {
          "shortName": "carburetor3",
          "conditionPercentage": 10.0
        },
        {
          "shortName": "crankshaft3",
          "conditionPercentage": 10.0
        },
        {
          "shortName": "piston3",
          "conditionPercentage": 10.0
        },
        {
          "shortName": "piston3",
          "conditionPercentage": 10.0
        },
        {
          "shortName": "sparkplug3",
          "conditionPercentage": 10.0
        },
        {
          "shortName": "sparkplug3",
          "conditionPercentage": 10.0
        },
        {
          "shortName": "valve3",
          "conditionPercentage": 10.0
        },
        {
          "shortName": "valve3",
          "conditionPercentage": 10.0
        }
      ]
    }
  },
  "Version": {
    "Major": 1,
    "Minor": 7,
    "Patch": 6
  }
}
You have an error in your config...
It's okay. I replaced steamID. lol
oh I must've missed checking that one. I'm new to doing all this server stuff, started 2 days agao. My bad, but thanks for the help. What would I have to put there to fix the config?
Yes, you should check your config for errors.
Use it to check --> https://jsonlint.com/
the config file is valid now, but the same thing still happens
Make sure you have permission...
Can you send a screenshot? When you typed /buy
i dont think it is permissions, since when I remove the plug-in and put it back in it works perfectly fine. This just happens every time I restart the server.