mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-07 04:38:03 +02:00
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…
Reference in New Issue
Block a user