mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-12-23 10:38:01 +00:00
getPlayersOnServer() check should be case-insensitive.
This commit is contained in:
parent
020341590f
commit
e13b990d6d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user