本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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.");
}
示例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.");
}
示例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;
}
示例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 = "";
}
示例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);
}
示例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;
}
示例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;
}
示例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");
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}