From ceba761b7b7913aa3845a126f623e4acf899ec77 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Sat, 30 Sep 2017 18:22:06 +0200 Subject: [PATCH] Fix session timeout whoops xD --- .../java/fr/xephi/authme/process/join/AsynchronousJoin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java index 0e20a62d..5fcad529 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java @@ -179,7 +179,7 @@ public class AsynchronousJoin implements AsynchronousProcess { if (auth != null) { long timeSinceLastLogin = System.currentTimeMillis() - auth.getLastLogin(); if(timeSinceLastLogin < 0 - || timeSinceLastLogin > (service.getProperty(PluginSettings.SESSIONS_TIMEOUT) * 60 * 60 * 1000) + || timeSinceLastLogin > (service.getProperty(PluginSettings.SESSIONS_TIMEOUT) * 60 * 1000) || !auth.getIp().equals(PlayerUtils.getPlayerIp(player))) { service.send(player, MessageKey.SESSION_EXPIRED); } else {