Ejemplo n.º 1
0
 /** Sysinfo command. Returns data about PHP.
  * This function returns informations about current memory consumption of the bot, and the current PHP version.
  * 
  * \param $id The game ID of the player who executed the command.
  * \param $command The command parameters.
  * 
  * \return Nothing.
  */
 public function CommandSysinfo($id, $command)
 {
     RCon::tell($id, "Memory consumption: \$0 used / \$1 allowed to php.", array($this->convert(memory_get_usage()), $this->convert(memory_get_usage(TRUE))));
     RCon::tell($id, "Cpu usage: \$0", array(Leelabot::getCpuUsage()));
     RCon::tell($id, "PHP version : \$0", array(phpversion()));
 }