int n = 0;
for (KeyValue<TownyEconomyObject,Double> kv : kvTable.getKeyValues()) {
n++;
if (maxListing != -1 && n > maxListing)
break;
TownyEconomyObject town = (TownyEconomyObject)kv.key;
output.add(String.format(
Colors.LightGray + "%-20s "+Colors.Gold+"|"+Colors.Blue+" %s",
TownyFormatter.getFormattedName(town),
TownyFormatter.formatMoney((Double)kv.value)));
}