Esempio n. 1
0
 /**
  * @param string $name
  */
 private function registerCommand($name)
 {
     $command = new PluginCommand($this->getMessages()->getMessage($name . "-command-name"), $this);
     $command->setUsage($command->getName());
     $command->setDescription($this->getMessages()->getMessage($name . "-command-description"));
     $this->getServer()->getCommandMap()->register("VIPPlus", $command);
 }