Fix NPE with VeryGames API
This commit is contained in:
parent
10878ff8f4
commit
48d16ed7b9
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user