mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-22 20:28:00 +00:00
Fix error when no other servers were present
This commit is contained in:
parent
0a2b43e7dc
commit
e316e84c2b
@ -175,11 +175,13 @@ public final class RedisBungee extends Plugin {
|
||||
|
||||
keys.add("server:" + i + ":usersOnline");
|
||||
}
|
||||
Set<String> users = rsc.sunion(keys.toArray(new String[keys.size()]));
|
||||
if (users != null && !users.isEmpty()) {
|
||||
for (String user : users) {
|
||||
if (UUIDTranslator.UUID_PATTERN.matcher(user).find()) {
|
||||
setBuilder = setBuilder.add(UUID.fromString(user));
|
||||
if (!keys.isEmpty()) {
|
||||
Set<String> users = rsc.sunion(keys.toArray(new String[keys.size()]));
|
||||
if (users != null && !users.isEmpty()) {
|
||||
for (String user : users) {
|
||||
if (UUIDTranslator.UUID_PATTERN.matcher(user).find()) {
|
||||
setBuilder = setBuilder.add(UUID.fromString(user));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user