mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Properly allow searches by name without UUID
This commit is contained in:
parent
9426f44cdd
commit
eddadcc179
@ -1587,7 +1587,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
statement = connection.prepareStatement("SELECT id, user FROM " + tablePrefix + "users WHERE uuid = ? OR (uuid IS NULL AND user = ?)");
|
statement = connection.prepareStatement("SELECT id, user FROM " + tablePrefix + "users WHERE uuid = ? OR (uuid IS NULL AND user = ?)");
|
||||||
statement.setString(1, uuid.toString());
|
statement.setString(1, uuid == null ? null : uuid.toString());
|
||||||
statement.setString(2, playerName);
|
statement.setString(2, playerName);
|
||||||
resultSet = statement.executeQuery();
|
resultSet = statement.executeQuery();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user