Fixed a bug

This commit is contained in:
netbenix 2020-11-10 20:32:39 +01:00
parent ce8505d592
commit ffd78cee4e
2 changed files with 1 additions and 3 deletions

View file

@ -39,11 +39,9 @@ public class SQLHandler {
break; break;
} }
} }
String path = "jdbc:sqlite:" + dbPath + "/" + "Players.db";
String query = "UPDATE " + tableName + " SET " + entity + " = ( " + entity + " + 1) WHERE UUID ='" + uuid.toString() + "';"; String query = "UPDATE " + tableName + " SET " + entity + " = ( " + entity + " + 1) WHERE UUID ='" + uuid.toString() + "';";
try { //Try connection and exec query try { //Try connection and exec query
conn = DriverManager.getConnection(path); conn = DriverManager.getConnection(dbPath);
Statement stmt = conn.createStatement(); Statement stmt = conn.createStatement();
stmt.execute(query); stmt.execute(query);
}catch(SQLException sqlEx) { }catch(SQLException sqlEx) {