php pocketmine-command-defaults-VanillaCommand类(方法)实例源码

下面列出了php pocketmine-command-defaults-VanillaCommand 类(方法)源码代码实例,从而了解它的用法。

作者:boyboo    项目:PocketMine-M   
public function __construct($name)
 {
     parent::__construct($name, "Shows the help menu", "/help [pageNumber]\n/help <topic> [pageNumber]", ["?"]);
     $this->setPermission("pocketmine.command.help");
 }

作者:Edwardthedog    项目:Steadfast   
public function __construct($name)
 {
     parent::__construct($name, "Reads back the server's performance.", "/status");
     $this->setPermission("pocketmine.command.status");
 }

作者:NewDelio    项目:PocketMine-0.13.   
public function __construct($name)
 {
     parent::__construct($name, "%pocketmine.command.save.description", "%commands.save.usage");
     $this->setPermission("pocketmine.command.save.perform");
 }

作者:xHF    项目:ImagicalMin   
public function __construct($name)
 {
     parent::__construct($name, "%pocketmine.command.version.description", "%pocketmine.command.version.usage", ["ver", "about"]);
     $this->setPermission("pocketmine.command.version");
 }

作者:boyboo    项目:PocketMine-M   
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");
 }

作者:robozer    项目:Yuriko-M   
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");
 }


问题


面经


文章

微信
公众号

扫码关注公众号