This should work but it doesn't
This commit is contained in:
parent
cfbc84c8b6
commit
722e1ea01b
|
|
@ -88,17 +88,14 @@ public class Database {
|
||||||
public void removeLinkedAccount(UUID uuid) {
|
public void removeLinkedAccount(UUID uuid) {
|
||||||
try {
|
try {
|
||||||
PreparedStatement statement = DatabaseConnection.getConnection()
|
PreparedStatement statement = DatabaseConnection.getConnection()
|
||||||
.prepareStatement("DELETE FROM linked_accounts WHERE player_uuid = ?");
|
.prepareStatement("DELETE FROM linked_accounts WHERE discord_id = ?");
|
||||||
statement.setString(1, uuid.toString());
|
statement.setString(1, uuid.toString());
|
||||||
statement.execute();
|
statement.executeUpdate();
|
||||||
statement.close();
|
|
||||||
|
|
||||||
statement = DatabaseConnection.getConnection()
|
PreparedStatement statement2 = DatabaseConnection.getConnection()
|
||||||
.prepareStatement("DELETE FROM account_roles WHERE uuid = ?");
|
.prepareStatement("DELETE FROM account_roles WHERE discord_id = ?");
|
||||||
statement.setString(1, uuid.toString());
|
statement2.setString(1, uuid.toString());
|
||||||
statement.execute();
|
statement2.executeUpdate();
|
||||||
|
|
||||||
statement.close();
|
|
||||||
} catch (SQLException var2) {
|
} catch (SQLException var2) {
|
||||||
var2.printStackTrace();
|
var2.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user