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;
|
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) {
|
||||||
|
|
|
||||||
Reference in a new issue