Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed Sep 7, 2024
1 parent d92660f commit cb96d2b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ public static boolean recordCurrentIP(Player player) {
List<String> storedIPs = getStoredIPs(storedPlayer);
Long exitTime = playerExitTimes.get(playerName);

try {
InetAddress localHost = InetAddress.getByName("localhost");
if (InetAddress.getByName(currentIP).equals(localHost)) {
return false;
}
} catch (UnknownHostException e) {
return false;
}
try {
InetAddress localHost = InetAddress.getByName("localhost");
if (InetAddress.getByName(currentIP).equals(localHost)) {
return false;
}
} catch (UnknownHostException e) {
return false;
}

if (Config.Settings.IPTimeout == 0) {
return storedIPs.contains(currentIP);
Expand Down

0 comments on commit cb96d2b

Please sign in to comment.