mirror of
https://github.com/taoneill/war.git
synced 2025-01-05 07:17:34 +01:00
Fix player list spacing issue
This commit is contained in:
parent
b011d3a46f
commit
20068cbb15
@ -736,10 +736,10 @@ public class Team {
|
||||
*
|
||||
* @return array of usernames.
|
||||
*/
|
||||
public String[] getPlayerNames() {
|
||||
String[] ret = new String[this.players.size()];
|
||||
for (int i = 0; i < this.players.size(); i++) {
|
||||
ret[i] = this.players.get(i).getName();
|
||||
public List<String> getPlayerNames() {
|
||||
List<String> ret = new ArrayList<String>(this.players.size());
|
||||
for (Player player : this.players) {
|
||||
ret.add(player.getName());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ public class Warzone {
|
||||
teamsMessage.append('\n');
|
||||
teamsMessage.append(MessageFormat.format(War.war.getString("zone.teaminfo.format"),
|
||||
team.getName(), team.getPoints(), team.getRemainingLifes(),
|
||||
team.getTeamConfig().resolveInt(TeamConfig.LIFEPOOL), StringUtils.join(team.getPlayerNames())));
|
||||
team.getTeamConfig().resolveInt(TeamConfig.LIFEPOOL), StringUtils.join(team.getPlayerNames().iterator(), ", ")));
|
||||
}
|
||||
}
|
||||
return teamsMessage.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user