コード例 #1
0
ファイル: Kill.php プロジェクト: TBNRFrags2468/EssentialsPE
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "kill", "Kill other people", "[player]");
     $this->setPermission("essentials.kill.use");
 }
コード例 #2
0
ファイル: Msg.php プロジェクト: TBNRFrags2468/EssentialsPE
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "tell", "Send private messages to other players", "<player> <message ...>", true, ["msg", "m", "t", "whisper"]);
     $this->setPermission("essentials.msg");
 }
コード例 #3
0
ファイル: Gamemode.php プロジェクト: PrimusLV/EssentialsPE
 /**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api, "gamemode", "Change player gamemode", "<mode> [player]", true, ["gm", "gma", "gmc", "gms", "gmt", "adventure", "creative", "survival", "spectator", "viewer"]);
     $this->setPermission("essentials.gamemode");
 }