use player_uuid instead of uuid

This commit is contained in:
Teriuihi 2022-01-11 01:05:13 +01:00
parent a287e11d84
commit 5cd8f5c894

View File

@ -142,7 +142,7 @@ public class Database {
public void removeLinkedAccount(DiscordLinkPlayer player) { public void removeLinkedAccount(DiscordLinkPlayer player) {
try { try {
PreparedStatement statement = DatabaseConnection.getConnection() PreparedStatement statement = DatabaseConnection.getConnection()
.prepareStatement("DELETE FROM linked_accounts WHERE discord_id = ? OR uuid = ?"); .prepareStatement("DELETE FROM linked_accounts WHERE discord_id = ? OR player_uuid = ?");
statement.setLong(1, player.getUserId()); statement.setLong(1, player.getUserId());
statement.setString(2, player.getUuid().toString()); statement.setString(2, player.getUuid().toString());
statement.executeUpdate(); statement.executeUpdate();