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
|
* player
|
||||||
*/
|
*/
|
||||||
public String getVeryGamesIP(Player player) {
|
public String getVeryGamesIP(Player player) {
|
||||||
String realIP = null;
|
String realIP = player.getAddress().getAddress().getHostAddress();
|
||||||
String sUrl = vgUrl;
|
String sUrl = vgUrl;
|
||||||
sUrl = sUrl.replace("%IP%", player.getAddress().getAddress().getHostAddress()).replace("%PORT%", "" + player.getAddress().getPort());
|
sUrl = sUrl.replace("%IP%", player.getAddress().getAddress().getHostAddress()).replace("%PORT%", "" + player.getAddress().getPort());
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user