• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP BaseFiles\BaseCommand类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中EssentialsPE\BaseFiles\BaseCommand的典型用法代码示例。如果您正苦于以下问题:PHP BaseCommand类的具体用法?PHP BaseCommand怎么用?PHP BaseCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了BaseCommand类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "back", "Teleport to your previous location", null, false, ["return"]);
     $this->setPermission("essentials.back.use");
 }
开发者ID:PrimusLV,项目名称:EssentialsPE,代码行数:8,代码来源:Back.php


示例17: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "getpos", "Get your/other's position", "[player]", true, ["coords", "position", "whereami", "getlocation", "getloc"]);
     $this->setPermission("essentials.getpos.use");
 }
开发者ID:PrimusLV,项目名称:EssentialsPE,代码行数:8,代码来源:GetPos.php


示例18: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "antioch", "Holy hand grenade", null, false, ["grenade", "tnt"]);
     $this->setPermission("essentials.antioch");
 }
开发者ID:TBNRFrags2468,项目名称:EssentialsPE,代码行数:8,代码来源:Antioch.php


示例19: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "hat", "Get some new cool headgear", "[remove]", false, ["head"]);
     $this->setPermission("essentials.hat");
 }
开发者ID:PrimusLV,项目名称:EssentialsPE,代码行数:8,代码来源:Hat.php


示例20: __construct

 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "claim", "Toogle Land Claim ability on the item you're holding", "<command|c:chat macro> <arguments...>", false, ["pt"]);
     $this->setPermission("essentials.landclaim.use");
 }
开发者ID:BalloonChamp,项目名称:EssentialsPE,代码行数:8,代码来源:LandClaim.php



注:本文中的EssentialsPE\BaseFiles\BaseCommand类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Eva\Api类代码示例发布时间:2022-05-23
下一篇:
PHP ORM\Entity类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap