private function _cmd_listmap($player, $command_string) { $mapset = parent::getMapsInfo(); parent::sendText('/w ' . $player . ' To select your prefered version use "-set map <index>"'); parent::sendText('/w ' . $player . ' [index] [map filename] [default]'); foreach ($mapset as $map) { parent::sendText('/w ' . $player . ' ' . $map); } }