    001    package net.minecraft.src;
    002
    003    import java.util.concurrent.Callable;
    004    import net.minecraft.server.MinecraftServer;
    005
    006    public class CallablePlayers implements Callable
    007    {
    008        /** Gets Minecraft Server players. */
    009        final MinecraftServer minecraftServerPlayers;
    010
    011        public CallablePlayers(MinecraftServer par1MinecraftServer)
    012        {
    013            this.minecraftServerPlayers = par1MinecraftServer;
    014        }
    015
    016        /**
    017         * Gets the current player count, maximum player count, and player entity list.
    018         */
    019        public String getPlayers()
    020        {
    021            return MinecraftServer.getServerConfigurationManager(this.minecraftServerPlayers).getCurrentPlayerCount() + " / " + MinecraftServer.getServerConfigurationManager(this.minecraftServerPlayers).getMaxPlayers() + "; " + MinecraftServer.getServerConfigurationManager(this.minecraftServerPlayers).playerEntityList;
    022        }
    023
    024        public Object call()
    025        {
    026            return this.getPlayers();
    027        }
    028    }