From a5ae8c96209512f09a81a3798e08e0930518c5b4 Mon Sep 17 00:00:00 2001 From: Stijn Bannink Date: Sun, 22 Jan 2023 11:38:08 +0100 Subject: [PATCH] Updated to v3 PRE1 alpha release --- pom.xml | 6 +++--- .../vehiclesplusconverter/handlers/Converter.java | 10 +++++----- .../vehiclesplusconverter/utils/MainUtil.java | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index fe6a280..834662c 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ - + org.apache.maven.plugins maven-compiler-plugin 3.8.1 @@ -82,9 +82,9 @@ nl.sbdeveloper VehiclesPlus-v3 - 3.0.0 + 3.0.0-SNAPSHOT system - ${project.basedir}/src/libs/VehiclesPlus-3.0.0.jar + ${project.basedir}/src/libs/VehiclesPlus-3.0.0-SNAPSHOT.jar diff --git a/src/main/java/tech/sbdevelopment/vehiclesplusconverter/handlers/Converter.java b/src/main/java/tech/sbdevelopment/vehiclesplusconverter/handlers/Converter.java index 1a596f0..ea275e1 100644 --- a/src/main/java/tech/sbdevelopment/vehiclesplusconverter/handlers/Converter.java +++ b/src/main/java/tech/sbdevelopment/vehiclesplusconverter/handlers/Converter.java @@ -84,11 +84,11 @@ public class Converter { private static void convertFuels() { for (Map.Entry entry : VehiclesPlus.getVehicleManager().getFuelTypeHashMap().entrySet()) { - nl.sbdeveloper.vehiclesplus.api.vehicles.fuel.FuelType ft = nl.sbdeveloper.vehiclesplus.api.vehicles.fuel.FuelType.builder() - .name(entry.getValue().getName()) - .item(entry.getValue().getFuelItem()) - .pricePerLiter(entry.getValue().getPricePerLiter()) - .build(); + nl.sbdeveloper.vehiclesplus.api.vehicles.fuel.FuelType ft = new nl.sbdeveloper.vehiclesplus.api.vehicles.fuel.FuelType( + entry.getValue().getName(), + entry.getValue().getPricePerLiter(), + entry.getValue().getFuelItem() + ); nl.sbdeveloper.vehiclesplus.api.VehiclesPlusAPI.getFuelTypes().put(entry.getKey(), ft); } diff --git a/src/main/java/tech/sbdevelopment/vehiclesplusconverter/utils/MainUtil.java b/src/main/java/tech/sbdevelopment/vehiclesplusconverter/utils/MainUtil.java index 6bf2a44..8b96e0c 100644 --- a/src/main/java/tech/sbdevelopment/vehiclesplusconverter/utils/MainUtil.java +++ b/src/main/java/tech/sbdevelopment/vehiclesplusconverter/utils/MainUtil.java @@ -1,7 +1,7 @@ package tech.sbdevelopment.vehiclesplusconverter.utils; import net.md_5.bungee.api.ChatColor; -import nl.sbdeveloper.vehiclesplus.storage.file.JSONFile; +import nl.sbdeveloper.vehiclesplus.storage.file.HJSONFile; import tech.sbdevelopment.vehiclesplusconverter.VehiclesPlusConverter; import tech.sbdevelopment.vehiclesplusconverter.api.ConversionException; import tech.sbdevelopment.vehiclesplusconverter.api.InvalidConversionException; @@ -47,7 +47,7 @@ public class MainUtil { File parentFolders = new File(nl.sbdeveloper.vehiclesplus.VehiclesPlus.getInstance().getDataFolder(), subFolder); if (!parentFolders.exists() && !parentFolders.mkdirs()) return; - JSONFile jsonFile = new JSONFile(nl.sbdeveloper.vehiclesplus.VehiclesPlus.getInstance(), subFolder + "/" + fileName); + HJSONFile jsonFile = new HJSONFile(nl.sbdeveloper.vehiclesplus.VehiclesPlus.getInstance(), subFolder + "/" + fileName); try { jsonFile.write(data); } catch (IOException e) {