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 4439b4c..e1794d6 100644 --- a/src/main/java/cc/baka9/catseedlogin/bukkit/object/LoginPlayerHelper.java +++ b/src/main/java/cc/baka9/catseedlogin/bukkit/object/LoginPlayerHelper.java @@ -105,8 +105,7 @@ public static boolean recordCurrentIP(Player player) { Long exitTime = playerExitTimes.get(playerName); try { - InetAddress localHost = InetAddress.getByName("localhost"); - if (InetAddress.getByName(currentIP).equals(localHost)) { + if (InetAddress.getByName(currentIP).isLoopbackAddress()) { return false; } } catch (UnknownHostException e) {