I must have some sort of syntax error somewhere, because both correctip
and loginip
are equal but my code is still saying they are not equal.
if(correctip != loginip){
event.disallow(null, "Access is denied to user " + name + ". If you believe this is in error, contact an admin.");
System.out.println(loginip);
System.out.println(correctip);
System.out.println("[Denied] HIGHRISKUSER " + name + " denied login. IP Att: " + loginip + " | IP Cor: " + correctip);
}else{
System.out.println("[Allowed] HIGHRISKUSER " + name + " allowed login. IP Att: " + loginip + " | IP Cor: " + correctip);
}
Both correctip
and loginip
are EXACTLY equal. Is there something else that could be causing problems?