This commit is contained in:
HaHaWTH 2024-03-25 02:50:25 +08:00
parent b40df54c9a
commit 48d5add08b

View File

@ -274,7 +274,9 @@ public class AsynchronousLogin implements AsynchronousProcess {
auth.setRealName(player.getName());
auth.setLastLogin(System.currentTimeMillis());
auth.setLastIp(ip);
auth.setQuitLocation(player.getLocation());
if (isFirstLogin) {
auth.setQuitLocation(player.getLocation());
}
dataSource.updateSession(auth);
// TODO: send an update when a messaging service will be implemented (SESSION)