Split list of players, so that it will wrap properly

This commit is contained in:
Mike Primm 2012-02-19 10:00:39 -06:00
parent e2c54eb766
commit ead4385438

View File

@ -124,7 +124,7 @@ public class DynmapFactionsPlugin extends JavaPlugin {
v = v.replaceAll("%playerowners%", (adm!=null)?adm.getName():""); v = v.replaceAll("%playerowners%", (adm!=null)?adm.getName():"");
String res = ""; String res = "";
for(FPlayer r : fact.getFPlayers()) { for(FPlayer r : fact.getFPlayers()) {
if(res.length()>0) res += ","; if(res.length()>0) res += ", ";
res += r.getName(); res += r.getName();
} }
v = v.replaceAll("%playermembers%", res); v = v.replaceAll("%playermembers%", res);