本文整理匯總了PHP中pocketmine\command\defaults\VanillaCommand類的典型用法代碼示例。如果您正苦於以下問題:PHP VanillaCommand類的具體用法?PHP VanillaCommand怎麽用?PHP VanillaCommand使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了VanillaCommand類的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");
}