Fixed a bug
This commit is contained in:
parent
ce8505d592
commit
ffd78cee4e
2 changed files with 1 additions and 3 deletions
Binary file not shown.
|
|
@ -39,11 +39,9 @@ public class SQLHandler {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
String path = "jdbc:sqlite:" + dbPath + "/" + "Players.db";
|
||||
String query = "UPDATE " + tableName + " SET " + entity + " = ( " + entity + " + 1) WHERE UUID ='" + uuid.toString() + "';";
|
||||
try { //Try connection and exec query
|
||||
conn = DriverManager.getConnection(path);
|
||||
conn = DriverManager.getConnection(dbPath);
|
||||
Statement stmt = conn.createStatement();
|
||||
stmt.execute(query);
|
||||
}catch(SQLException sqlEx) {
|
||||
|
|
|
|||
Reference in a new issue