/logout now reset timestamp in case session, to enable the /login after

a d/c
This commit is contained in:
Xephi 2014-08-27 06:03:45 +02:00
parent 655a6a1a71
commit a947198c8e

View File

@ -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());