mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-22 20:28:00 +00:00
oops, fixed bug where player servers would return the proxy than server
This commit is contained in:
parent
6a6e303334
commit
482dfc5141
@ -213,7 +213,8 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
|
||||
for (String serverId : getServerIds()) {
|
||||
Set<String> players = jedis.smembers("proxy:" + serverId + ":usersOnline");
|
||||
for (String player : players) {
|
||||
builder.put(serverId, UUID.fromString(player));
|
||||
|
||||
builder.put(jedis.hget("player:" + player, "server"), UUID.fromString(player));
|
||||
}
|
||||
}
|
||||
return builder.build();
|
||||
@ -225,7 +226,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
|
||||
for (String serverId : getServerIds()) {
|
||||
Set<String> players = jedisCluster.smembers("proxy:" + serverId + ":usersOnline");
|
||||
for (String player : players) {
|
||||
builder.put(serverId, UUID.fromString(player));
|
||||
builder.put(jedisCluster.hget("player:" + player, "server"), UUID.fromString(player));
|
||||
}
|
||||
}
|
||||
return builder.build();
|
||||
|
@ -377,7 +377,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
|
||||
for (String serverId : getServerIds()) {
|
||||
Set<String> players = jedis.smembers("proxy:" + serverId + ":usersOnline");
|
||||
for (String player : players) {
|
||||
builder.put(serverId, UUID.fromString(player));
|
||||
builder.put(jedis.hget("player:" + player, "server"), UUID.fromString(player));
|
||||
}
|
||||
}
|
||||
return builder.build();
|
||||
@ -389,7 +389,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
|
||||
for (String serverId : getServerIds()) {
|
||||
Set<String> players = jedisCluster.smembers("proxy:" + serverId + ":usersOnline");
|
||||
for (String player : players) {
|
||||
builder.put(serverId, UUID.fromString(player));
|
||||
builder.put(jedisCluster.hget("player:" + player, "server"), UUID.fromString(player));
|
||||
}
|
||||
}
|
||||
return builder.build();
|
||||
|
Loading…
Reference in New Issue
Block a user