From c5e1a735f9960212420a3c9d05c94f4c1b02d3f3 Mon Sep 17 00:00:00 2001 From: SLiPCoR Date: Wed, 23 Jul 2014 11:30:25 +0200 Subject: [PATCH] Check for uuids instead of usernames when loading a player --- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index e2c426454..48744c21a 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -473,8 +473,8 @@ public final class SQLDatabaseManager implements DatabaseManager { + "JOIN " + tablePrefix + "experience e ON (u.id = e.user_id) " + "JOIN " + tablePrefix + "cooldowns c ON (u.id = c.user_id) " + "JOIN " + tablePrefix + "huds h ON (u.id = h.user_id) " - + "WHERE u.user = ?"); - statement.setString(1, playerName); + + "WHERE u.UUID = ?"); + statement.setString(1, uuid); ResultSet result = statement.executeQuery();