Exemplo n.º 1
0
 public function onEnable()
 {
     Cmd::addCommand($this, $this, "sp", ["description" => "Sends popup to player", "usage" => "/sp <player> [message]"]);
     Cmd::addCommand($this, $this, "st", ["description" => "Sends tip to player", "usage" => "/st <player> [message]"]);
 }
Exemplo n.º 2
0
 public function __construct($owner, $alias, $cmd)
 {
     Cmd::addCommand($owner, $this, $alias, ["description" => mc::_("Alias for %1%", $cmd), "usage" => mc::_("/%1% [options]", $alias)]);
     $this->cmd = $cmd;
 }
Exemplo n.º 3
0
 public function onEnable()
 {
     Cmd::rmCommand($this->getServer(), "list");
     Cmd::addCommand($this, $this, "list", ["description" => "Replaced List command", "usage" => "/list"]);
 }