From 88ff88103e18308625b8e90b35d535c3444e4230 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Sat, 12 Feb 2011 18:19:51 +0100 Subject: [PATCH] Better faction listing --- src/com/bukkit/mcteam/factions/Commands.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/bukkit/mcteam/factions/Commands.java b/src/com/bukkit/mcteam/factions/Commands.java index 20840f38..54a3687e 100644 --- a/src/com/bukkit/mcteam/factions/Commands.java +++ b/src/com/bukkit/mcteam/factions/Commands.java @@ -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()); + } } }