mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 13:30:27 -07:00
Fixup lastLogin in database
This commit is contained in:
parent
3a370a0292
commit
c712be33d8
4 changed files with 5 additions and 4 deletions
|
|
@ -191,10 +191,11 @@ public final class PlayerSession {
|
|||
}
|
||||
PreparedStatement statement;
|
||||
try {
|
||||
statement = connection.prepareStatement("UPDATE members SET online = ? AND lastWorld = ? WHERE username = ?");
|
||||
statement = connection.prepareStatement("UPDATE members SET online = ?, lastWorld = ?, lastLogin = ? WHERE username = ?");
|
||||
statement.setBoolean(1, true);
|
||||
statement.setInt(2, worldId);
|
||||
statement.setString(3, username);
|
||||
statement.setLong(3, System.currentTimeMillis());
|
||||
statement.setString(4, username);
|
||||
statement.execute();
|
||||
SQLManager.close(connection);
|
||||
} catch (SQLException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue