diff --git a/.gitignore b/.gitignore
index e789273..3eec782 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,6 +45,8 @@ Network Trash Folder
Temporary Items
.apdisk
+# Temp files
+*.tmp
# =========================
diff --git a/pom.xml b/pom.xml
index 72313d4..2695ec0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
at.pcgamingfreaks
MinePacks
- 1.17.2
+ 1.17.3-SNAPSHOT
scm:git:git@github.com:GeorgH93/Bukkit_Minepacks.git
diff --git a/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java b/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java
index 49e2f05..39af58a 100644
--- a/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java
+++ b/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java
@@ -70,6 +70,7 @@ protected HikariConfig getPoolConfig()
return null;
}
HikariConfig poolConfig = new HikariConfig();
+ poolConfig.setMaximumPoolSize(1);
poolConfig.setJdbcUrl("jdbc:sqlite:" + plugin.getDataFolder().getAbsolutePath() + File.separator + "backpack.db");
poolConfig.setConnectionTestQuery("SELECT 1;");
return poolConfig;
@@ -83,7 +84,7 @@ protected void updateQuerysForDialect()
queryInsertBP = queryInsertBP.replaceAll("\\) VALUES \\(\\?,\\?,\\?", "{FieldBPLastUpdate}) VALUES (?,?,?,DATE('now')");
}
queryDeleteOldBackpacks = "DELETE FROM `{TableBackpacks}` WHERE `{FieldBPLastUpdate}` < DATE('now', '-{VarMaxAge} days')";
- queryUpdateBP = queryUpdateBP.replaceAll("\\{NOW\\}", "DATE('now')");
+ queryUpdateBP = queryUpdateBP.replaceAll("\\{NOW}", "DATE('now')");
if(useUUIDs)
{
queryUpdatePlayerAdd = "INSERT OR IGNORE INTO `{TablePlayers}` (`{FieldName}`,`{FieldUUID}`) VALUES (?,?);";
@@ -122,9 +123,7 @@ protected void checkDB()
rs.next();
stmt.execute("ALTER TABLE `backpacks` ADD COLUMN `lastupdate` DATE DEFAULT '" + rs.getString(1) + "';");
}
- catch(SQLException ignored)
- {
- }
+ catch(SQLException ignored) {}
}
}
catch(SQLException e)