本文整理汇总了PHP中pocketmine\command\defaults\VanillaCommand::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP VanillaCommand::__construct方法的具体用法?PHP VanillaCommand::__construct怎么用?PHP VanillaCommand::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pocketmine\command\defaults\VanillaCommand
的用法示例。
在下文中一共展示了VanillaCommand::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($name)
{
parent::__construct($name, "Shows the help menu", "/help [pageNumber]\n/help <topic> [pageNumber]", ["?"]);
$this->setPermission("pocketmine.command.help");
}
示例2: __construct
public function __construct($name)
{
parent::__construct($name, "Reads back the server's performance.", "/status");
$this->setPermission("pocketmine.command.status");
}
示例3: __construct
public function __construct($name)
{
parent::__construct($name, "%pocketmine.command.save.description", "%commands.save.usage");
$this->setPermission("pocketmine.command.save.perform");
}
示例4: __construct
public function __construct($name)
{
parent::__construct($name, "%pocketmine.command.version.description", "%pocketmine.command.version.usage", ["ver", "about"]);
$this->setPermission("pocketmine.command.version");
}
示例5: __construct
public function __construct($name)
{
parent::__construct($name, "Sets a worlds's spawn point. If no coordinates are specified, the player's coordinates will be used.", "/setworldspawn OR /setworldspawn <x> <y> <z>");
$this->setPermission("pocketmine.command.setworldspawn");
}
示例6: __construct
public function __construct($name)
{
// TO TRANSLATE
parent::__construct($name, "Gives the specified player a certain amount of experience. Specify <amount>L to give levels instead, with a negative amount resulting in taking levels.", "/xp <amount> [player] OR /xp <amount>L [player]", []);
$this->setPermission("pocketmine.command.xp");
}