當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PluginCommand::__construct方法代碼示例

本文整理匯總了PHP中pocketmine\command\PluginCommand::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP PluginCommand::__construct方法的具體用法?PHP PluginCommand::__construct怎麽用?PHP PluginCommand::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pocketmine\command\PluginCommand的用法示例。


在下文中一共展示了PluginCommand::__construct方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @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);
 }
開發者ID:nesgohood,項目名稱:PMMP-Plugins,代碼行數:14,代碼來源:ClannishCommand.php

示例2: __construct

 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);
 }
開發者ID:dog194,項目名稱:EconomyS,代碼行數:7,代碼來源:UsuryCommand.php

示例3: __construct

 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));
 }
開發者ID:legoboy0215,項目名稱:2BitFacs,代碼行數:9,代碼來源:SubCommandMap.php

示例4: __construct

 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));
 }
開發者ID:RedstoneAlmeida,項目名稱:SkyBlockPE,代碼行數:20,代碼來源:Commands.php

示例5: __construct

 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));
 }
開發者ID:boy0001,項目名稱:MyPlot,代碼行數:20,代碼來源:Commands.php

示例6: __construct

 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"));
 }
開發者ID:gitter-badger,項目名稱:MyPlot,代碼行數:21,代碼來源:Commands.php

示例7: __construct

 public function __construct(EconomyAPI $plugin, $name)
 {
     parent::__construct($name, $plugin);
 }
開發者ID:Tolo0,項目名稱:EconomyS,代碼行數:4,代碼來源:EconomyAPICommand.php


注:本文中的pocketmine\command\PluginCommand::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。