diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 405c910..00ecf23 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -118,7 +118,9 @@ public final class RedisBungee extends Plugin { final Multimap serversToPlayers() { ImmutableMultimap.Builder multimapBuilder = ImmutableMultimap.builder(); for (UUID p : getPlayers()) { - multimapBuilder.put(dataManager.getServer(p), p); + String name = dataManager.getServer(p); + if (name != null) + multimapBuilder.put(name, p); } return multimapBuilder.build(); }