當前位置: 首頁>>代碼示例>>PHP>>正文


PHP defaults\VanillaCommand類代碼示例

本文整理匯總了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");
 }
開發者ID:boybook,項目名稱:PocketMine-MP,代碼行數:5,代碼來源:HelpCommand.php

示例2: __construct

 public function __construct($name)
 {
     parent::__construct($name, "Reads back the server's performance.", "/status");
     $this->setPermission("pocketmine.command.status");
 }
開發者ID:Edwardthedog2,項目名稱:Steadfast2,代碼行數:5,代碼來源:StatusCommand.php

示例3: __construct

 public function __construct($name)
 {
     parent::__construct($name, "%pocketmine.command.save.description", "%commands.save.usage");
     $this->setPermission("pocketmine.command.save.perform");
 }
開發者ID:NewDelion,項目名稱:PocketMine-0.13.x,代碼行數:5,代碼來源:SaveCommand.php

示例4: __construct

 public function __construct($name)
 {
     parent::__construct($name, "%pocketmine.command.version.description", "%pocketmine.command.version.usage", ["ver", "about"]);
     $this->setPermission("pocketmine.command.version");
 }
開發者ID:xHFx,項目名稱:ImagicalMine,代碼行數:5,代碼來源:VersionCommand.php

示例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");
 }
開發者ID:boybook,項目名稱:PocketMine-MP,代碼行數:5,代碼來源:SetWorldSpawnCommand.php

示例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");
 }
開發者ID:robozeri,項目名稱:Yuriko-MP,代碼行數:6,代碼來源:ExpCommand.php


注:本文中的pocketmine\command\defaults\VanillaCommand類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。