Yeah, that wasn't going to work...

This commit is contained in:
Steven Lawson 2012-12-01 20:33:36 -05:00
parent 9501c07301
commit 4de09696b9

View File

@ -18,7 +18,12 @@ public class Command_list extends TFM_Command
{
if (TFM_Util.isFromClanforge(sender.getName()))
{
sender.sendMessage("There are " + server.getOnlinePlayers().length + "/" + server.getMaxPlayers() + " players online:\n" + StringUtils.join(server.getOnlinePlayers(), ", ").toString());
List<String> player_names = new ArrayList<String>();
for (Player p : server.getOnlinePlayers())
{
player_names.add(p.getName());
}
sender.sendMessage("There are " + player_names.size() + "/" + server.getMaxPlayers() + " players online:\n" + StringUtils.join(player_names, ", "));
return true;
}