Fix NPE with VeryGames API

This commit is contained in:
Xephi 2014-08-25 03:46:34 +02:00
parent 10878ff8f4
commit 48d16ed7b9

View File

@ -796,7 +796,7 @@ public class AuthMe extends JavaPlugin {
* player
*/
public String getVeryGamesIP(Player player) {
String realIP = null;
String realIP = player.getAddress().getAddress().getHostAddress();
String sUrl = vgUrl;
sUrl = sUrl.replace("%IP%", player.getAddress().getAddress().getHostAddress()).replace("%PORT%", "" + player.getAddress().getPort());
try {