    001    package net.minecraft.src;
    002
    003    import net.minecraft.server.MinecraftServer;
    004
    005    public class CommandServerList extends CommandBase
    006    {
    007        public String getCommandName()
    008        {
    009            return "list";
    010        }
    011
    012        public int func_82362_a()
    013        {
    014            return 0;
    015        }
    016
    017        public void processCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr)
    018        {
    019            par1ICommandSender.sendChatToPlayer(par1ICommandSender.translateString("commands.players.list", new Object[] {Integer.valueOf(MinecraftServer.getServer().getCurrentPlayerCount()), Integer.valueOf(MinecraftServer.getServer().getMaxPlayers())}));
    020            par1ICommandSender.sendChatToPlayer(MinecraftServer.getServer().getConfigurationManager().getPlayerListAsString());
    021        }
    022    }