Beispiel #1
0
 /** Exec command. Executes a configuration file.
  * This function is bound to the !cfg command. It executes a .cfg file on the server.
  * 
  * \param $id The game ID of the player who executed the command.
  * \param $command The command parameters.
  * 
  * \return Nothing.
  */
 public function CommandCfg($id, $command)
 {
     if (!empty($command[0])) {
         RCon::exec($command[0]);
     } else {
         Rcon::tell($id, 'Missing parameters.');
     }
 }