mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
Fix SQLite errors on logout
This commit is contained in:
parent
0d67538758
commit
4838e17b14
|
@ -217,42 +217,42 @@ public class Methods {
|
||||||
if (abilities.get(2) != null) {
|
if (abilities.get(2) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot2 = '" + abilities.get(2) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot2 = '" + abilities.get(2) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot2 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot2 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
if (abilities.get(3) != null) {
|
if (abilities.get(3) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot3 = '" + abilities.get(3) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot3 = '" + abilities.get(3) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot3 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot3 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
if (abilities.get(4) != null) {
|
if (abilities.get(4) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot4 = '" + abilities.get(4) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot4 = '" + abilities.get(4) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot4 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot4 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
if (abilities.get(5) != null) {
|
if (abilities.get(5) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot5 = '" + abilities.get(5) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot5 = '" + abilities.get(5) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot5 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot5 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
if (abilities.get(6) != null) {
|
if (abilities.get(6) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot6 = '" + abilities.get(6) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot6 = '" + abilities.get(6) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot6 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot6 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
if (abilities.get(7) != null) {
|
if (abilities.get(7) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot7 = '" + abilities.get(7) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot7 = '" + abilities.get(7) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot7 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot7 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
if (abilities.get(8) != null) {
|
if (abilities.get(8) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot8 = '" + abilities.get(8) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot8 = '" + abilities.get(8) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot8 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot8 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
if (abilities.get(9) != null) {
|
if (abilities.get(9) != null) {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot9 = '" + abilities.get(9) + "' WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot9 = '" + abilities.get(9) + "' WHERE uuid = '" + uuid + "'");
|
||||||
} else {
|
} else {
|
||||||
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot9 = '" + null + " WHERE uuid = '" + uuid + "'");
|
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot9 = " + null + " WHERE uuid = '" + uuid + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue