From baa947526be63bcdf21b949314e2e114c8ad4ea5 Mon Sep 17 00:00:00 2001 From: Shuiling <1668589925@qq.com> Date: Thu, 11 Jul 2024 23:52:13 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DIP=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cc/baka9/catseedlogin/bukkit/object/LoginPlayerHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/baka9/catseedlogin/bukkit/object/LoginPlayerHelper.java b/src/main/java/cc/baka9/catseedlogin/bukkit/object/LoginPlayerHelper.java index 7e7531d..3247f19 100644 --- a/src/main/java/cc/baka9/catseedlogin/bukkit/object/LoginPlayerHelper.java +++ b/src/main/java/cc/baka9/catseedlogin/bukkit/object/LoginPlayerHelper.java @@ -98,7 +98,7 @@ public static boolean recordCurrentIP(Player player) { long timeDifference = currentTime - lastLoginTime; long timeoutInTicks = (Config.Settings.IPTimeout * 60 * 1000) / 50; - if (storedIPs.contains(currentIP) ) { + if (storedIPs.contains(currentIP) && timeDifference <= timeoutInTicks) { return true; } }