当前位置: 首页>>代码示例>>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;未经允许,请勿转载。