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

Fix for newest BungeeCord builds (after 4040d9f). Also fixes some minor stuff.

This commit is contained in:
Tux 2013-11-01 22:08:48 -04:00
parent b994839e3e
commit c4ee103700

View File

@ -37,10 +37,6 @@ public class RedisBungee extends Plugin implements Listener {
private static RedisBungee plugin;
private boolean canonicalGlist = true;
protected JedisPool getPool() {
return pool;
}
protected String getServerId() {
return serverId;
}
@ -247,7 +243,7 @@ public class RedisBungee extends Plugin implements Listener {
Map rawYaml;
try (InputStream in = new FileInputStream(file)) {
rawYaml = (Map) yaml.load(new FileInputStream(file));
rawYaml = (Map) yaml.load(in);
}
String redisServer = "localhost";
@ -339,8 +335,7 @@ public class RedisBungee extends Plugin implements Listener {
players.add(new ServerPing.PlayerInfo(player, "aaaa"));
}
ServerPing reply = new ServerPing();
reply.setPlayers(new ServerPing.Players(old.getPlayers().getMax(), players.size()));
reply.setSample(players.toArray(new ServerPing.PlayerInfo[players.size()]));
reply.setPlayers(new ServerPing.Players(old.getPlayers().getMax(), players.size(), players.toArray(new ServerPing.PlayerInfo[players.size()])));
reply.setDescription(old.getDescription());
reply.setFavicon(old.getFavicon());
reply.setVersion(old.getVersion());