Skip to content

Commit

Permalink
Changement de méthode pour recup ladresse ip (#103)
Browse files Browse the repository at this point in the history
Normalement  ça devrait marcher
  • Loading branch information
Margouta authored Jul 7, 2024
2 parents bc427b1 + 4f0398f commit fd6387e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/fr/communaywen/core/listeners/VpnListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public void OnPlayerJoin(PlayerJoinEvent event) {
return;
}

String ip = Objects.requireNonNull(player.getAddress()).toString();
String ip = player.getAddress().getAddress().getHostAddress();


new BukkitRunnable() {
@Override
Expand Down

0 comments on commit fd6387e

Please sign in to comment.