/**
  * @param BasePlugin $plugin
  * @param string[] $aliases
  * @param string $realname
  * @param int $id
  */
 public function __construct(BasePlugin $plugin, array $aliases, $realname, $id)
 {
     // TODO register
     parent::__construct($plugin, $cmd = "w" . array_shift($aliases), "Warn about {$realname}", "/{$cmd} <player> [points = " . ($this->points = self::$IDS_TO_POINTS[$id]) . "] [message ]", $aliases);
     $this->realname = $realname;
     $this->id = $id;
 }
 public function __construct(BasePlugin $main)
 {
     parent::__construct($main, "pn", "Send a private notice to a player", "/pn <player> <message ...>");
 }
 public function __construct(BasePlugin $main)
 {
     parent::__construct($main, "say", "Network broadcast", "/say [.]<message ...>");
 }
Пример #4
0
 public function __construct(BasePlugin $main)
 {
     parent::__construct($main, "mb", "Deprecated command, use /warn instead", "Deprecated command, use /warn instead", ["ban"]);
 }