diff --git a/src/main/java/us/camin/JoinListener.java b/src/main/java/us/camin/JoinListener.java index 4431c83..db2db41 100644 --- a/src/main/java/us/camin/JoinListener.java +++ b/src/main/java/us/camin/JoinListener.java @@ -112,7 +112,7 @@ public class JoinListener extends PlayerListener { log.info("Authing "+user+" against "+authServer); HttpURLConnection conn = (HttpURLConnection)authServer.openConnection(); int code = conn.getResponseCode(); - if (code >= 200 && code <= 300) + if (code >= 200 && code < 300) return true; return false; }