diff --git a/src/main/java/com/gamingmesh/jobs/commands/list/convert.java b/src/main/java/com/gamingmesh/jobs/commands/list/convert.java index 4f8b2eae..0e7e5b4a 100644 --- a/src/main/java/com/gamingmesh/jobs/commands/list/convert.java +++ b/src/main/java/com/gamingmesh/jobs/commands/list/convert.java @@ -53,7 +53,6 @@ public class convert implements Cmd { Jobs.getJobsDAO().saveExplore(); Jobs.getJobsDAO().saveBlockProtection(); - Jobs.loadAllPlayersData(); } catch (SQLException e) { e.printStackTrace(); Jobs.consoleMsg("&cCan't write data to data base, please send error log to dev's."); @@ -62,6 +61,8 @@ public class convert implements Cmd { try { Jobs.reload(); + + Jobs.loadAllPlayersData(); } catch (IOException e) { e.printStackTrace(); } diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java index 93560a1a..bdf4286b 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java +++ b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java @@ -1035,7 +1035,7 @@ public abstract class JobsDAO { try { statement = conns.createStatement(); if (Jobs.getDBManager().getDbType().toString().equalsIgnoreCase("sqlite")) { - statement.executeUpdate("TRUNCATE TABLE `" + getPrefix() + table + "`"); + statement.executeUpdate("DELETE from `" + getPrefix() + table + "`"); } else { statement.executeUpdate("DELETE from `" + getPrefix() + table + "`"); } diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java b/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java index a09cb0db..6babe85f 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java +++ b/src/main/java/com/gamingmesh/jobs/dao/JobsManager.java @@ -47,7 +47,7 @@ public class JobsManager { File f = new File(Jobs.getFolder(), "generalConfig.yml"); YamlConfiguration config = YamlConfiguration.loadConfiguration(f); - config.set("storage.method", DbType.toString()); + config.set("storage.method", DbType.toString().toLowerCase()); try { config.save(f); } catch (IOException e) {