/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);
|
||||
if (Settings.isSessionsEnabled)
|
||||
auth.setLastLogin(0L);
|
||||
database.updateSession(auth);
|
||||
auth.setQuitLocX(player.getLocation().getX());
|
||||
auth.setQuitLocY(player.getLocation().getY());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user