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

oops, fixed bug where player servers would return the proxy than server

This commit is contained in:
mohammed jasem alaajel 2022-07-17 15:14:46 +04:00
parent 6a6e303334
commit 482dfc5141
2 changed files with 5 additions and 4 deletions

View File

@ -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();

View File

@ -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();