mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Yeah, that wasn't going to work...
This commit is contained in:
parent
9501c07301
commit
4de09696b9
@ -18,7 +18,12 @@ public class Command_list extends TFM_Command
|
|||||||
{
|
{
|
||||||
if (TFM_Util.isFromClanforge(sender.getName()))
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user