}
private static void buildWho(EpicZonePlayer ezp, Player player, CommandSender sender, Integer pageNumber, boolean allZones)
{
EpicZone currentZone = General.getPlayer(player.getName()).getCurrentZone();
if (currentZone == null)
{
allZones = true;
}
ArrayList<EpicZonePlayer> players = getPlayers(currentZone, allZones);
Integer playersPerPage = 8;
Integer playerCount = players.size();
if (allZones)
{
Integer totalPages = ((int) Math.floor((double) playerCount / (double) playersPerPage));
Message.Send(sender, Message_ID.Info_00113_PlayersOnline_Global, new String[]{playerCount.toString(), pageNumber.toString(), totalPages.toString()});
for (int i = (pageNumber - 1) * playersPerPage; i < (pageNumber * playersPerPage); i++)
{
if (players.size() > i)
{
Player thisPlayer = General.plugin.getServer().getPlayer(players.get(i).getName());
if (thisPlayer != null && thisPlayer.isOnline())
{
Message.Send(sender, buildWhoPlayerName(ezp, players, i, allZones));
}
}
}
}
else
{
Integer totalPages = ((int) Math.floor((double) playerCount / playersPerPage) + 1);
Message.Send(sender, Message_ID.Info_00114_PlayersOnline_WithinZone_X, new String[]{playerCount.toString(), currentZone.getName(), pageNumber.toString(), totalPages.toString()});
for (int i = (pageNumber - 1) * playersPerPage; i < pageNumber * playersPerPage; i++)
{
if (players.size() > i)
{
Player thisPlayer = General.plugin.getServer().getPlayer(players.get(i).getName());