diff --git a/src/main/java/eu/rex2go/chat2go/user/UserManager.java b/src/main/java/eu/rex2go/chat2go/user/UserManager.java index e08cfd2..099d599 100644 --- a/src/main/java/eu/rex2go/chat2go/user/UserManager.java +++ b/src/main/java/eu/rex2go/chat2go/user/UserManager.java @@ -70,8 +70,8 @@ public User loadUser(UUID uuid, String username, boolean force) { // update remote username PreparedStatement ps1 = connection.prepareStatement("UPDATE `user` SET `username` = ? WHERE `uuid` = ? "); - ps1.setString(1, uuid.toString()); - ps1.setString(2, username); + ps1.setString(1, username); + ps1.setString(2, uuid.toString()); ps1.execute(); ps1.close();