diff --git a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java index c102644..4a25d24 100644 --- a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java +++ b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java @@ -270,7 +270,12 @@ public abstract class PlayerDataManager
builder.put(response.get(), uuid)); + responses.forEach((uuid, response) -> { + String key = response.get(); + if (key == null) return; + + builder.put(key, uuid); + }); return builder.build(); } @@ -281,7 +286,12 @@ public abstract class PlayerDataManager
builder.put(response.get(), uuid)); + responses.forEach((uuid, response) -> { + String key = response.get(); + if (key == null) return; + + builder.put(key, uuid); + }); return builder.build(); } }.call();