Option to multiply costs of all vehiclesSolved

Could you please add a multiplier to edit the vanilla costs of all vehicles? This would be really helpful on highly modded servers. 

 

For example a global multiplier of 10 will make all vanilla prices times 10 without having to mess with tenths of permissions

 

Alternatively filling the config with the default vanilla cost of helicopters on first load will do the trick aswell, then we only have to multiple the value. Then its not needed to go in-game, check all vehicle prices one by one and multiplying it

Thanks in advance

Multiplying the cost by 10, using the current design of the plugin, only requires 6 permissions, since there are only 6 purchaseable vehicles. This doesn't seem like much work for the server owner (should take 5 minutes), so I suspect implementing a shortcut for this isn't a good use of developer time. Depending on how the feature is designed, the additional config option could confuse server owners because it might not be obvious when that option applies if permissions are also used.

Regarding your alternative suggestion to auto-fill the vanilla price in the config, I originally decided against doing that because once the vanilla amounts are generated, if a future Rust update changes the vanilla prices (they have changed before), then people who never even edited those values would be subject to the old values rather than getting the new vanilla values. Note: I did document the vanilla costs in the plugin documentation (which I will try to keep up to date if there are changes), so you shouldn't need to go in-game to see them.

Here are the values you would need. Just spread these out across the 6 vehicles in order.

{
  "ItemShortName": "scrap",
  "Amount": 12500
},
{
  "ItemShortName": "scrap",
  "Amount": 7500
},
{
  "ItemShortName": "scrap",
  "Amount": 3000
},
{
  "ItemShortName": "scrap",
  "Amount": 1250
},
{
  "ItemShortName": "scrap",
  "Amount": 3000
},
{
  "ItemShortName": "scrap",
  "Amount": 2000
},

Here are the commands you would run to grant the permissions.

  • o.grant group default vehiclevendoroptions.price.scraptransport.scrap.12500
  • o.grant group default vehiclevendoroptions.price.minicopter.scrap.7500
  • o.grant group default vehiclevendoroptions.price.rhib.scrap.3000
  • o.grant group default vehiclevendoroptions.price.rowboat.scrap.1250
  • o.grant group default vehiclevendoroptions.price.duosub.scrap.3000
  • o.grant group default vehiclevendoroptions.price.solosub.scrap.2000

Thank you very much, it's just that the default config was a bit confusing with the amount of entries

Locked automatically