mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 01:27:35 +01:00
/logout now reset timestamp in case session, to enable the /login after
a d/c
This commit is contained in:
parent
655a6a1a71
commit
a947198c8e
@ -62,6 +62,8 @@ public class LogoutCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PlayerAuth auth = PlayerCache.getInstance().getAuth(name);
|
PlayerAuth auth = PlayerCache.getInstance().getAuth(name);
|
||||||
|
if (Settings.isSessionsEnabled)
|
||||||
|
auth.setLastLogin(0L);
|
||||||
database.updateSession(auth);
|
database.updateSession(auth);
|
||||||
auth.setQuitLocX(player.getLocation().getX());
|
auth.setQuitLocX(player.getLocation().getX());
|
||||||
auth.setQuitLocY(player.getLocation().getY());
|
auth.setQuitLocY(player.getLocation().getY());
|
||||||
|
Loading…
Reference in New Issue
Block a user