From 72025bc22c115f1725bb540127c219288b34ceec Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Sun, 14 Apr 2024 13:19:08 +0400 Subject: [PATCH] fix wrong use method of inetaddres in player data manager --- .../minecraft/redisbungee/api/PlayerDataManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java index 2324d26..84d46a7 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java @@ -161,7 +161,7 @@ public abstract class PlayerDataManager redisData = new HashMap<>(); redisData.put("last-online", String.valueOf(0)); redisData.put("proxy", plugin.configuration().getProxyId()); - redisData.put("ip", inetAddress.toString()); + redisData.put("ip", inetAddress.getHostAddress()); unifiedJedis.hset("redis-bungee::player::" + uuid + "::data", redisData); JSONObject data = new JSONObject();