From 15950f3d0495ea6f3eed7aff777f6d63df372584 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Mon, 12 Oct 2020 20:08:08 +0200 Subject: [PATCH] Fix typo --- .../Minepacks/Bukkit/Database/Backend/MySQL.java | 2 +- .../Minepacks/Bukkit/Database/Backend/SQL.java | 8 ++++---- .../Minepacks/Bukkit/Database/Backend/SQLite.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/MySQL.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/MySQL.java index f849343..296f19b 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/MySQL.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/MySQL.java @@ -36,7 +36,7 @@ public MySQL(@NotNull Minepacks plugin, @Nullable ConnectionProvider connectionP } @Override - protected void updateQuerysForDialect() + protected void updateQueriesForDialect() { queryDeleteOldBackpacks = "DELETE FROM `{TableBackpacks}` WHERE `{FieldBPLastUpdate}` + INTERVAL {VarMaxAge} day < NOW()"; queryUpdateBp = queryUpdateBp.replaceAll("\\{NOW}", "NOW()"); diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQL.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQL.java index f9a3a96..a459851 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQL.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Backend/SQL.java @@ -56,7 +56,7 @@ public SQL(@NotNull Minepacks plugin, @NotNull ConnectionProvider connectionProv if(!dataSource.isAvailable()) throw new IllegalStateException("Failed to initialize database connection!"); loadSettings(); - buildQuerys(); + buildQueries(); checkDB(); checkUUIDs(); // Check if there are user accounts without UUID @@ -181,7 +181,7 @@ public Connection getConnection() throws SQLException protected abstract void checkDB(); - protected final void buildQuerys() + protected final void buildQueries() { // Build the SQL querys with placeholders for the table and field names queryGetBP = "SELECT {FieldBPOwner},{FieldBPITS},{FieldBPVersion} FROM {TableBackpacks} INNER JOIN {TablePlayers} ON {TableBackpacks}.{FieldBPOwner}={TablePlayers}.{FieldPlayerID} WHERE {FieldUUID}=?;"; @@ -203,7 +203,7 @@ protected final void buildQuerys() queryFixUUIDs = "UPDATE {TablePlayers} SET {FieldUUID}=? WHERE {FieldPlayerID}=?;"; queryDeleteOldCooldowns = "DELETE FROM {TableCooldowns} WHERE {FieldCDTime}