diff --git a/src/main/java/fr/xephi/authme/commands/LogoutCommand.java b/src/main/java/fr/xephi/authme/commands/LogoutCommand.java index d558cc42f..156d84a6f 100644 --- a/src/main/java/fr/xephi/authme/commands/LogoutCommand.java +++ b/src/main/java/fr/xephi/authme/commands/LogoutCommand.java @@ -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());