Beispiel #1
0
 /** set command. Set variable.
  * This function is bound to the !cfg command. Set variable on the server.
  * 
  * \param $id The game ID of the player who executed the command.
  * \param $command The command parameters.
  * 
  * \return Nothing.
  */
 public function CommandSet($id, $command)
 {
     if (!empty($command[0]) && !empty($command[1])) {
         $cmd = $command;
         array_shift($cmd);
         $command[1] = implode(' ', $cmd);
         RCon::set($command[0] . ' "' . $command[1] . '"');
     } else {
         Rcon::tell($id, 'Missing parameters.');
     }
 }