From b9c7c31c094951d2951209cf83eaa815e02540f0 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Sun, 28 Apr 2024 23:15:44 +0400 Subject: [PATCH] oops: forgot to cache uuids/name of joined player --- .../minecraft/redisbungee/api/PlayerDataManager.java | 4 ++-- .../minecraft/redisbungee/BungeePlayerDataManager.java | 2 +- .../minecraft/redisbungee/VelocityPlayerDataManager.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 a6d600a..2606817 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,13 +161,13 @@ public abstract class PlayerDataManager redisData = new HashMap<>(); redisData.put("last-online", String.valueOf(0)); redisData.put("proxy", this.proxyId); redisData.put("ip", inetAddress.getHostAddress()); unifiedJedis.hset("redis-bungee::" + this.networkId + "::player::" + uuid + "::data", redisData); - + plugin.getUuidTranslator().persistInfo(name, uuid, this.unifiedJedis); JSONObject data = new JSONObject(); data.put("proxy", this.proxyId); data.put("uuid", uuid); diff --git a/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java b/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java index 8540005..0a5dfbf 100644 --- a/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java +++ b/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java @@ -84,7 +84,7 @@ public class BungeePlayerDataManager extends PlayerDataManager