On the server I get a list of files. Of these, I get the maximum number of players and the number of players who are currently playing. So I need to get from these files the greatest value of the number of players who are currently playing. Thanks Here is the code. There all functions
foreach ($this->pg->arenas as $var) { $maxplayer = $var->getSlot(); $players = $var->getSlot(true); $ev->getPlayer()->sendMessage($var->getWorld().": ".$maxplayer."/".$players); }