Skip to content

Commit

Permalink
fix: 修复IP超时判断逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed Jul 12, 2024
1 parent dd31078 commit baa9475
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit baa9475

Please sign in to comment.