Little fix (prev commit)

This commit is contained in:
Xephi 2015-12-21 13:13:03 +01:00
parent 705cc7ba8d
commit a5956555a5

View File

@ -864,6 +864,8 @@ public class AuthMe extends JavaPlugin {
@Override
public void run() {
String realIP = player.getAddress().getAddress().getHostAddress();
if (realIp.containsKey(name))
realIP = realIp.get(name);
String sUrl = "http://monitor-1.verygames.net/api/?action=ipclean-real-ip&out=raw&ip=%IP%&port=%PORT%";
sUrl = sUrl.replace("%IP%", realIP)
.replace("%PORT%", "" + player.getAddress().getPort());