mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Fix offline inspecting a player hitting an error if the casing didn't match up perfectly. Fixes #3727
This commit is contained in:
parent
859063e406
commit
43d8e08e83
@ -578,7 +578,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
|||||||
resultSet.close();
|
resultSet.close();
|
||||||
statement.close();
|
statement.close();
|
||||||
|
|
||||||
if (!playerName.isEmpty() && !playerName.equals(name)) {
|
if (!playerName.isEmpty() && !playerName.equalsIgnoreCase(name) && uuid != null) {
|
||||||
statement = connection.prepareStatement(
|
statement = connection.prepareStatement(
|
||||||
"UPDATE `" + tablePrefix + "users` "
|
"UPDATE `" + tablePrefix + "users` "
|
||||||
+ "SET user = ? "
|
+ "SET user = ? "
|
||||||
|
Loading…
Reference in New Issue
Block a user