本文整理汇总了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);
}
示例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);
}
示例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));
}
示例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));
}
示例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));
}
示例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"));
}
示例7: __construct
public function __construct(EconomyAPI $plugin, $name)
{
parent::__construct($name, $plugin);
}