Better faction listing

This commit is contained in:
Olof Larsson 2011-02-12 18:19:51 +01:00
parent da89ff4ecd
commit 88ff88103e

View File

@ -347,7 +347,11 @@ public class Commands {
public static void list(Follower me) {
me.sendMessage(TextUtil.titleize("Faction List"), false);
for (Faction faction : Faction.getAll()) {
me.sendMessage(faction.getTag(me)+Conf.colorSystem+" ("+faction.getFollowersWhereOnline(true).size()+" / "+faction.getFollowersAll().size()+" online)");
if (faction.id == 0) {
me.sendMessage(faction.getTag(me)+Conf.colorSystem+" "+faction.getFollowersWhereOnline(true).size() + " online");
} else {
me.sendMessage(faction.getTag(me)+Conf.colorSystem+" "+faction.getFollowersWhereOnline(true).size()+"/"+faction.getFollowersAll().size()+" online, "+faction.getLandRounded()+"/"+faction.getPowerRounded()+"/"+faction.getPowerMaxRounded());
}
}
}