Check for uuids instead of usernames when loading a player

This commit is contained in:
SLiPCoR 2014-07-23 11:30:25 +02:00 committed by TfT_02
parent 80754b4426
commit c5e1a735f9

View File

@ -473,8 +473,8 @@ public final class SQLDatabaseManager implements DatabaseManager {
+ "JOIN " + tablePrefix + "experience e ON (u.id = e.user_id) " + "JOIN " + tablePrefix + "experience e ON (u.id = e.user_id) "
+ "JOIN " + tablePrefix + "cooldowns c ON (u.id = c.user_id) " + "JOIN " + tablePrefix + "cooldowns c ON (u.id = c.user_id) "
+ "JOIN " + tablePrefix + "huds h ON (u.id = h.user_id) " + "JOIN " + tablePrefix + "huds h ON (u.id = h.user_id) "
+ "WHERE u.user = ?"); + "WHERE u.UUID = ?");
statement.setString(1, playerName); statement.setString(1, uuid);
ResultSet result = statement.executeQuery(); ResultSet result = statement.executeQuery();