diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 3f5f41f..ef86583 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -199,7 +199,12 @@ final Set getPlayers() { final Set getPlayersOnServer(@NonNull String server) { checkArgument(getProxy().getServers().containsKey(server), "server does not exist"); - return ImmutableSet.copyOf((Collection) getServerPlayersScript.eval(ImmutableList.of(), ImmutableList.of(server))); + Collection asStrings = (Collection) getServerPlayersScript.eval(ImmutableList.of(), ImmutableList.of(server)); + ImmutableSet.Builder builder = ImmutableSet.builder(); + for (String s : asStrings) { + builder.add(UUID.fromString(s)); + } + return builder.build(); } final void sendProxyCommand(@NonNull String proxyId, @NonNull String command) {