Beispiel #1
0
 /** Map command. Change the actual map. (reload the server)
  * This function is bound to the !map command. He change map with the name of the map given by the player. For the official map you can give the name of the map without "ut4_".
  * 
  * \param $id The game ID of the player who executed the command.
  * \param $command The command parameters.
  * 
  * \return Nothing.
  */
 public function CommandMap($id, $command)
 {
     if (isset($command[0])) {
         if (in_array($command[0], $this->_mapUt4List)) {
             RCon::map('"ut4_' . $command[0] . '"');
         } else {
             RCon::map('"' . $command[0] . '"');
         }
     } else {
         Rcon::tell($id, 'Missing parameters.');
     }
 }