2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-23 04:28:01 +00:00

getPlayersOnServer() check should be case-insensitive.

This commit is contained in:
Tux 2015-12-25 06:21:25 -05:00
parent 020341590f
commit e13b990d6d

View File

@ -181,7 +181,15 @@ public final class RedisBungee extends Plugin {
final Set<UUID> getPlayersOnServer(@NonNull String server) {
checkArgument(getProxy().getServers().containsKey(server), "server does not exist");
return ImmutableSet.copyOf(serversToPlayers().get(server));
Multimap<String, UUID> serversToPlayers = serversToPlayers();
for (String s : serversToPlayers.keySet()) {
if (s.equalsIgnoreCase(server)) {
return ImmutableSet.copyOf(serversToPlayers.get(s));
}
}
return Collections.emptySet();
}
final void sendProxyCommand(@NonNull String proxyId, @NonNull String command) {