/** * @param Clannish $plugin * @param string $name * @param string $description * @param string $usage * @param string $permission */ public function __construct(Clannish $plugin, $name, $description = "", $usage = "", $permission = "") { parent::__construct($name, $plugin); $this->setDescription($description); $this->setUsage($usage); $this->setPermission($permission); }
public function __construct($cmd = "usury", $plugin) { parent::__construct($cmd, $plugin); $this->setUsage("/{$cmd} <host|request|cancel|list|left>"); $this->setDescription("Usury master command"); $plugin->getServer()->getPluginManager()->registerEvents($this, $plugin); }
public function __construct(_2BitFacs $plugin) { parent::__construct("f", $plugin); $this->setAliases(["faction"]); $this->setPermission("2bitfacs.command.f"); $this->setDescription("Main command for _2BitFacs!"); $this->loadSubCommand(new AboutSubCommand($plugin)); $this->loadSubCommand(new CreateSubCommand($plugin)); }
public function __construct(SkyBlock $plugin) { parent::__construct("island", $plugin); $this->setAliases(["is"]); $this->setPermission("skyblock.command"); $this->setDescription("Claim and manage your plots"); $this->loadSubCommand(new ClaimSubCommand($plugin)); $this->loadSubCommand(new GenerateSubCommand($plugin)); $this->loadSubCommand(new ListSubCommand($plugin)); $this->loadSubCommand(new InfoSubCommand($plugin)); $this->loadSubCommand(new AddHelperSubCommand($plugin)); $this->loadSubCommand(new RemoveHelperSubCommand($plugin)); $this->loadSubCommand(new AutoSubCommand($plugin)); $this->loadSubCommand(new ClearSubCommand($plugin)); $this->loadSubCommand(new DisposeSubCommand($plugin)); $this->loadSubCommand(new ResetSubCommand($plugin)); $this->loadSubCommand(new BiomeSubCommand($plugin)); $this->loadSubCommand(new HomeSubCommand($plugin)); $this->loadSubCommand(new NameSubCommand($plugin)); }
public function __construct(MyPlot $plugin) { parent::__construct("plot", $plugin); $this->setAliases(["p"]); $this->setPermission("myplot.command"); $this->setDescription("Claim and manage your plots"); $this->loadSubCommand(new ClaimSubCommand($plugin)); $this->loadSubCommand(new GenerateSubCommand($plugin)); $this->loadSubCommand(new ListSubCommand($plugin)); $this->loadSubCommand(new InfoSubCommand($plugin)); $this->loadSubCommand(new AddHelperSubCommand($plugin)); $this->loadSubCommand(new RemoveHelperSubCommand($plugin)); $this->loadSubCommand(new AutoSubCommand($plugin)); $this->loadSubCommand(new ClearSubCommand($plugin)); $this->loadSubCommand(new DisposeSubCommand($plugin)); $this->loadSubCommand(new ResetSubCommand($plugin)); $this->loadSubCommand(new BiomeSubCommand($plugin)); $this->loadSubCommand(new HomeSubCommand($plugin)); $this->loadSubCommand(new AdminSubCommand($plugin)); }
public function __construct(MyPlot $plugin) { parent::__construct($plugin->getLanguage()->get("command.name"), $plugin); $this->setPermission("myplot.command"); $this->setAliases([$plugin->getLanguage()->get("command.alias")]); $this->setDescription($plugin->getLanguage()->get("command.desc")); $this->loadSubCommand(new HelpSubCommand($plugin, "help")); $this->loadSubCommand(new ClaimSubCommand($plugin, "claim")); $this->loadSubCommand(new GenerateSubCommand($plugin, "generate")); $this->loadSubCommand(new ListSubCommand($plugin, "list")); $this->loadSubCommand(new InfoSubCommand($plugin, "info")); $this->loadSubCommand(new AddHelperSubCommand($plugin, "addhelper")); $this->loadSubCommand(new RemoveHelperSubCommand($plugin, "removehelper")); $this->loadSubCommand(new AutoSubCommand($plugin, "auto")); $this->loadSubCommand(new ClearSubCommand($plugin, "clear")); $this->loadSubCommand(new DisposeSubCommand($plugin, "dispose")); $this->loadSubCommand(new ResetSubCommand($plugin, "reset")); $this->loadSubCommand(new BiomeSubCommand($plugin, "biome")); $this->loadSubCommand(new HomeSubCommand($plugin, "home")); $this->loadSubCommand(new NameSubCommand($plugin, "name")); }
public function __construct(EconomyAPI $plugin, $name) { parent::__construct($name, $plugin); }