2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-05-03 11:40:29 +00:00

Use bungeecord-config instead of snakeyaml

This commit is contained in:
Tux
2013-12-23 23:12:54 -05:00
parent e5bfb52c0a
commit fb3d67f43c
4 changed files with 44 additions and 95 deletions

View File

@@ -47,7 +47,7 @@ public class RedisBungeeCommands {
BaseComponent[] playersOnline = new ComponentBuilder("").color(ChatColor.YELLOW).append(String.valueOf(count))
.append(" player(s) are currently online.").create();
if (args.length > 0 && args[0].equals("showall")) {
if (RedisBungee.getConfiguration().isCanonicalGlist()) {
if (RedisBungee.getConfiguration().getBoolean("canonical-glist", false)) {
Multimap<String, String> serverToPlayers = HashMultimap.create();
for (String p : RedisBungee.getApi().getPlayersOnline()) {
ServerInfo si = RedisBungee.getApi().getServerFor(p);