use player_uuid instead of uuid
This commit is contained in:
parent
a287e11d84
commit
5cd8f5c894
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user