VeryGames ipclean api fix

This commit is contained in:
Xephi 2014-08-25 03:45:42 +02:00
parent 6664b1c58f
commit 10878ff8f4

View File

@ -804,7 +804,7 @@ public class AuthMe extends JavaPlugin {
URLConnection urlc = url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
String inputLine = in.readLine();
if (inputLine != null && !inputLine.isEmpty() && !inputLine.equalsIgnoreCase("error")) {
if (inputLine != null && !inputLine.isEmpty() && !inputLine.equalsIgnoreCase("error") && !inputLine.contains("error")) {
realIP = inputLine;
}
} catch (Exception e) {