mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-25 18:17:34 +01:00
Little fix (prev commit)
This commit is contained in:
parent
705cc7ba8d
commit
a5956555a5
@ -864,6 +864,8 @@ public class AuthMe extends JavaPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
String realIP = player.getAddress().getAddress().getHostAddress();
|
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%";
|
String sUrl = "http://monitor-1.verygames.net/api/?action=ipclean-real-ip&out=raw&ip=%IP%&port=%PORT%";
|
||||||
sUrl = sUrl.replace("%IP%", realIP)
|
sUrl = sUrl.replace("%IP%", realIP)
|
||||||
.replace("%PORT%", "" + player.getAddress().getPort());
|
.replace("%PORT%", "" + player.getAddress().getPort());
|
||||||
|
Loading…
Reference in New Issue
Block a user