diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/MySQLCoreProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/MySQLCoreProvider.java index eba8c911..182f7789 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/MySQLCoreProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/core/MySQLCoreProvider.java @@ -166,6 +166,8 @@ public void init(LaunchServer server) { protected boolean updateAuth(User user, String accessToken) throws IOException { try (Connection c = mySQLHolder.getConnection()) { + MySQLUser mySQLUser = (MySQLUser) user; + mySQLUser.accessToken = accessToken; PreparedStatement s = c.prepareStatement(updateAuthSQL); s.setString(1, accessToken); s.setString(2, user.getUUID().toString()); @@ -179,6 +181,8 @@ protected boolean updateAuth(User user, String accessToken) throws IOException { @Override protected boolean updateServerID(User user, String serverID) throws IOException { try (Connection c = mySQLHolder.getConnection()) { + MySQLUser mySQLUser = (MySQLUser) user; + mySQLUser.serverId = serverID; PreparedStatement s = c.prepareStatement(updateServerIDSQL); s.setString(1, serverID); s.setString(2, user.getUUID().toString());