当前位置: 首页>>代码示例>>PHP>>正文


PHP Command::__construct方法代码示例

本文整理汇总了PHP中pocketmine\command\Command::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Command::__construct方法的具体用法?PHP Command::__construct怎么用?PHP Command::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pocketmine\command\Command的用法示例。


在下文中一共展示了Command::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct(EconomyAPI $plugin)
 {
     $desc = $plugin->getCommandMessage("seemoney");
     parent::__construct("seemoney", $desc["description"], $desc["usage"]);
     $this->setPermission("economyapi.command.seemoney");
     $this->plugin = $plugin;
 }
开发者ID:dog194,项目名称:EconomyS,代码行数:7,代码来源:SeeMoneyCommand.php

示例2: __construct

 public function __construct(Main $luckyBlock, &$setup, &$data)
 {
     parent::__construct("luckyblock", "LuckyBlock is an plugin that allows you to create LuckyBlock!", "/lucky <command> <value>", ["luckyblock", "lucky", "lb"]);
     $this->luckyBlock = $luckyBlock;
     $this->data = $data;
     $this->setup = $setup;
 }
开发者ID:xionbig,项目名称:LuckyBlock,代码行数:7,代码来源:Commands.php

示例3: __construct

 public function __construct(OneVsOne $plugin, ArenaManager $arenaManager)
 {
     parent::__construct($this->commandName, "Join 1vs1 queue !");
     $this->setUsage("/{$this->commandName}");
     $this->plugin = $plugin;
     $this->arenaManager = $arenaManager;
 }
开发者ID:applqpak,项目名称:pocketmine-1vs1-plugin,代码行数:7,代码来源:JoinCommand.php

示例4: __construct

 public function __construct(LagFixer $main)
 {
     $this->plugin = $main;
     parent::__construct("realhealth", "Sends you your real health", null, ["rh", "rlhlth"]);
     $this->setPermission("lagfixer.realhealth");
     $this->setPermissionMessage("Hmm, seems that you haven't been granted permission to view your real health.");
 }
开发者ID:barnseyminesuk,项目名称:Small-ZC-Plugins,代码行数:7,代码来源:HealthCommand.php

示例5: __construct

 public function __construct(LagFixer $main)
 {
     $this->plugin = $main;
     parent::__construct("show", "Force show a player(s) if they are not supposed to be invisible", "<player|-all>");
     $this->setPermission("lagfixer.show");
     $this->setPermissionMessage("Seems that someone took away your permission to show invisible players.");
 }
开发者ID:barnseyminesuk,项目名称:Small-ZC-Plugins,代码行数:7,代码来源:ShowCommand.php

示例6: __construct

 public function __construct(HungerGames $plugin, ArenaManager $arenaManager)
 {
     parent::__construct($this->commandName, "Set a resettable chest");
     $this->setUsage("/{$this->commandName}" . " [arena number]");
     $this->plugin = $plugin;
     $this->arenaManager = $arenaManager;
 }
开发者ID:TuffDev,项目名称:HungerGames,代码行数:7,代码来源:ChestPlaceCommand.php

示例7: __construct

 /**
  * @param string $name
  * @param Plugin $owner
  */
 public function __construct($name, Plugin $owner)
 {
     parent::__construct($name);
     $this->owningPlugin = $owner;
     $this->executor = $owner;
     $this->usageMessage = "";
 }
开发者ID:Edwardthedog2,项目名称:Steadfast2,代码行数:11,代码来源:PluginCommand.php

示例8: __construct

 public function __construct(DynamicHub $hub, string $name, string $gameName, array $aliases)
 {
     parent::__construct($name, "Join {$gameName}", "/{$name}", $aliases);
     $this->hub = $hub;
     $this->gameName = $gameName;
     $hub->getServer()->getCommandMap()->register("join", $this);
 }
开发者ID:gitter-badger,项目名称:DynamicHub,代码行数:7,代码来源:JoinGameCommand.php

示例9: __construct

 public function __construct(HungerGames $plugin, ArenaManager $arenaManager)
 {
     parent::__construct($this->commandName, "Create a new arena");
     $this->setUsage("/{$this->commandName}" . " [id] [capacity]");
     $this->command = $this->commandName;
     $this->plugin = $plugin;
     $this->arenaManager = $arenaManager;
 }
开发者ID:TuffDev,项目名称:HungerGames,代码行数:8,代码来源:AddArenaCommand.php

示例10: __construct

 public function __construct(OneVsOne $plugin, ArenaManager $arenaManager)
 {
     parent::__construct($this->commandName, "Reference a new arena");
     $this->setUsage("/{$this->commandName}");
     $this->command = $this->commandName;
     $this->plugin = $plugin;
     $this->arenaManager = $arenaManager;
 }
开发者ID:TDMGamingMC,项目名称:pocketmine-1vs1-plugin,代码行数:8,代码来源:ReferenceArenaCommand.php

示例11: __construct

 public function __construct(WorldEditArt $main)
 {
     if (Utils::getOS() !== "win") {
         throw new \RuntimeException("//wea-config is only for Windows.");
     }
     $this->main = $main;
     parent::__construct("/wea-config", "Start WorldEditArt installer(will stop the server)", "/wea-config");
 }
开发者ID:WonderlandPE,项目名称:WorldEditArt,代码行数:8,代码来源:StartConfigurationCommand.php

示例12: __construct

 public function __construct(HungerGames $plugin, ArenaManager $arenaManager)
 {
     parent::__construct($this->commandName, "Create the lobby spawn");
     $this->setUsage("/{$this->commandName}");
     $this->command = $this->commandName;
     $this->plugin = $plugin;
     $this->arenaManager = $arenaManager;
 }
开发者ID:TuffDev,项目名称:HungerGames,代码行数:8,代码来源:AddLobbyCommand.php

示例13: __construct

 /**
  * @param QueryFacade $plugin
  */
 public function __construct(QueryFacade $plugin)
 {
     parent::__construct("queryfacade");
     $this->setDescription("Shows all the sub-commands for QueryFacade");
     $this->setUsage("/queryfacade <sub-commands> [parameters]");
     $this->setPermission("queryfacade.command.queryfacade");
     $this->setAliases(["qf"]);
     $this->plugin = $plugin;
 }
开发者ID:Evarettedavis,项目名称:PocketMine-Plugins,代码行数:12,代码来源:QueryFacadeCommand.php

示例14: __construct

 /**
  * @param iManager $plugin
  */
 public function __construct(iManager $plugin)
 {
     parent::__construct("imanager");
     $this->setDescription("Shows all the sub-commands for iManager");
     $this->setUsage("/imanager <sub-command> [parameters]");
     $this->setPermission("imanager.command.imanager");
     $this->setAliases(["im"]);
     $this->plugin = $plugin;
 }
开发者ID:Evarettedavis,项目名称:PocketMine-Plugins,代码行数:12,代码来源:iManagerCommand.php

示例15: __construct

 /**
  * @param RapidCMD $plugin
  */
 public function __construct(RapidCMD $plugin)
 {
     parent::__construct("rapidcmd");
     $this->setDescription("Shows all RapidCMD commands");
     $this->setUsage("/rapidcmd <sub-command> [parameters]");
     $this->setPermission("rapidcmd.command.rapidcmd");
     $this->setAliases(["rc"]);
     $this->plugin = $plugin;
 }
开发者ID:Artide,项目名称:PocketMine-Plugins,代码行数:12,代码来源:RapidCMDCommand.php


注:本文中的pocketmine\command\Command::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。