Skip to content

Commit

Permalink
Resolve #35
Browse files Browse the repository at this point in the history
  • Loading branch information
minecrafter committed Feb 14, 2016
1 parent f5af1ae commit 1a14a43
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,12 @@ final Set<UUID> getPlayers() {

final Set<UUID> getPlayersOnServer(@NonNull String server) {
checkArgument(getProxy().getServers().containsKey(server), "server does not exist");
return ImmutableSet.copyOf((Collection<UUID>) getServerPlayersScript.eval(ImmutableList.<String>of(), ImmutableList.<String>of(server)));
Collection<String> asStrings = (Collection<String>) getServerPlayersScript.eval(ImmutableList.<String>of(), ImmutableList.<String>of(server));
ImmutableSet.Builder<UUID> builder = ImmutableSet.builder();
for (String s : asStrings) {
builder.add(UUID.fromString(s));
}
return builder.build();
}

final void sendProxyCommand(@NonNull String proxyId, @NonNull String command) {
Expand Down

0 comments on commit 1a14a43

Please sign in to comment.