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]"]); }
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; }
public function onEnable() { Cmd::rmCommand($this->getServer(), "list"); Cmd::addCommand($this, $this, "list", ["description" => "Replaced List command", "usage" => "/list"]); }