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


PHP BaseFiles\BaseCommand類代碼示例

本文整理匯總了PHP中EssentialsPE\BaseFiles\BaseCommand的典型用法代碼示例。如果您正苦於以下問題:PHP BaseCommand類的具體用法?PHP BaseCommand怎麽用?PHP BaseCommand使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了BaseCommand類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @param BaseAPI $api
  * @param string $name
  * @param string $description
  * @param null|string $usageMessage
  * @param bool|null|string $consoleUsageMessage
  * @param array $aliases
  */
 public function __construct(BaseAPI $api, $name, $description = "", $usageMessage = null, $consoleUsageMessage = true, array $aliases = [])
 {
     parent::__construct($api, $name, $description, $usageMessage, $consoleUsageMessage, $aliases);
     // Special part :D
     $commandMap = $api->getServer()->getCommandMap();
     $command = $commandMap->getCommand($name);
     $command->setLabel($name . "_disabled");
     $command->unregister($commandMap);
 }
開發者ID:TBNRFrags2468,項目名稱:EssentialsPE,代碼行數:17,代碼來源:BaseOverrideCommand.php

示例2: __construct

 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "nuke", "Thin carpet of bomb", "/nuke [player]", null);
     $this->setPermission("essentials.nuke");
 }
開發者ID:ZencraftYouTube,項目名稱:EssentialsPE,代碼行數:8,代碼來源:Nuke.php

示例3: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "tpahere", "Request a player to teleport to your position", "<player>", false);
     $this->setPermission("essentials.tpahere");
 }
開發者ID:PrimusLV,項目名稱:EssentialsPE,代碼行數:8,代碼來源:TPAHere.php

示例4: __construct

 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "jump", "Teleport you to the block you're looking at", "/jump", false, ["j", "jumpto"]);
     $this->setPermission("essentials.jump");
 }
開發者ID:mwvent,項目名稱:WattzEssentialsPE,代碼行數:8,代碼來源:Jump.php

示例5: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "heal", "Heal yourself or other player", "[player]");
     $this->setPermission("essentials.heal.use");
 }
開發者ID:TBNRFrags2468,項目名稱:EssentialsPE,代碼行數:8,代碼來源:Heal.php

示例6: __construct

 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "seen", "See player's last played time", "/seen <player>");
     $this->setPermission("essentials.seen");
 }
開發者ID:JungHyun3459,項目名稱:EssentialsPE,代碼行數:8,代碼來源:Seen.php

示例7: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "clearinventory", "Clear your/other's inventory", "[player]", true, ["ci", "clean", "clearinvent"]);
     $this->setPermission("essentials.clearinventory.use");
 }
開發者ID:TBNRFrags2468,項目名稱:EssentialsPE,代碼行數:8,代碼來源:ClearInventory.php

示例8: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "essentials", "Get current Essentials version", "[update <check|install>]", true, ["essentials", "ess", "esspe"]);
     $this->setPermission("essentials.essentials");
 }
開發者ID:TBNRFrags2468,項目名稱:EssentialsPE,代碼行數:8,代碼來源:EssentialsPE.php

示例9: __construct

 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "near", "List the players near to you", "/near [player]", null, ["nearby"]);
     $this->setPermission("essentials.near.use");
 }
開發者ID:mwvent,項目名稱:WattzEssentialsPE,代碼行數:8,代碼來源:Near.php

示例10: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "jump", "Teleport you to the block you're looking at", null, false, ["j", "jumpto"]);
     $this->setPermission("essentials.jump");
 }
開發者ID:PrimusLV,項目名稱:EssentialsPE,代碼行數:8,代碼來源:Jump.php

示例11: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "top", "Teleport to the highest block above you", null, false);
     $this->setPermission("essentials.top");
 }
開發者ID:PrimusLV,項目名稱:EssentialsPE,代碼行數:8,代碼來源:Top.php

示例12: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "kit", "Get a pre-defined kit!", "[name] [player]", "[<name> <player>]", ["kits"]);
     $this->setPermission("essentials.kit.use");
 }
開發者ID:PrimusLV,項目名稱:EssentialsPE,代碼行數:8,代碼來源:Kit.php

示例13: __construct

 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "sethome", "Create or update a home position", "/sethome <name>", false, ["createhome"]);
     $this->setPermission("essentials.sethome");
 }
開發者ID:mwvent,項目名稱:WattzEssentialsPE,代碼行數:8,代碼來源:SetHome.php

示例14: __construct

 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "gamemode", "Change player gamemode", "/gamemode <mode> [player]", null, ["gm", "gma", "gmc", "gms", "gmt", "adventure", "creative", "survival", "spectator", "viewer"]);
     $this->setPermission("essentials.gamemode");
 }
開發者ID:Jackboy320,項目名稱:EssentialsPE,代碼行數:8,代碼來源:Gamemode.php

示例15: __construct

 /**
  * @param Loader $plugin
  */
 public function __construct(Loader $plugin)
 {
     parent::__construct($plugin, "powertool", "Toogle PowerTool on the item you're holding", "/powertool <command|c:chat macro> <arguments...>", false, ["pt"]);
     $this->setPermission("essentials.powertool.use");
 }
開發者ID:mwvent,項目名稱:WattzEssentialsPE,代碼行數:8,代碼來源:PowerTool.php


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