From a947198c8e7ea67f9632d05993914644376a7108 Mon Sep 17 00:00:00 2001 From: Xephi Date: Wed, 27 Aug 2014 06:03:45 +0200 Subject: [PATCH] /logout now reset timestamp in case session, to enable the /login after a d/c --- src/main/java/fr/xephi/authme/commands/LogoutCommand.java | 2 ++ 1 file changed, 2 insertions(+) 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());