/**
  * @param BaseAPI $api
  * @param Player $player
  * @param bool $mode
  */
 public function __construct(BaseAPI $api, Player $player, $mode)
 {
     parent::__construct($api);
     $this->player = $player;
     $this->isFlying = $api->canFly($player);
     $this->mode = $mode;
 }
 /**
  * @param BaseAPI $api
  * @param Player $player
  * @param bool $mode
  */
 public function __construct(BaseAPI $api, Player $player, $mode)
 {
     parent::__construct($api);
     $this->player = $player;
     $this->isEnabled = $api->isPvPEnabled($player);
     $this->mode = $mode;
 }
 /**
  * @param BaseAPI $api
  * @param Player $player
  * @param bool $mode
  * @param \DateTime $expires
  */
 public function __construct(BaseAPI $api, Player $player, $mode, \DateTime $expires = null)
 {
     parent::__construct($api);
     $this->player = $player;
     $this->isMuted = $api->isMuted($player);
     $this->mode = $mode;
     $this->expires = $expires;
 }
 /**
  * @param BaseAPI $api
  * @param Player $player
  * @param bool $mode
  * @param bool $broadcast
  */
 public function __construct(BaseAPI $api, Player $player, $mode, $broadcast)
 {
     parent::__construct($api);
     $this->player = $player;
     $this->isAFK = $api->isAFK($player);
     $this->mode = $mode;
     $this->broadcast = $broadcast;
 }
 /**
  * @param BaseAPI $api
  * @param Player $player
  * @param bool $willVanish
  * @param bool $noPacket
  */
 public function __construct(BaseAPI $api, Player $player, $willVanish, $noPacket)
 {
     parent::__construct($api);
     $this->player = $player;
     $this->isVanished = $api->isVanished($player);
     $this->willVanish = $willVanish;
     $this->noPacket = $noPacket;
 }
 /**
  * @param BaseAPI $api
  * @param Player $player
  * @param string $new_nick
  * @param mixed $nametag
  */
 public function __construct(BaseAPI $api, Player $player, $new_nick, $nametag = false)
 {
     parent::__construct($api);
     $this->player = $player;
     $this->new_nick = $new_nick;
     $this->old_nick = $player->getDisplayName();
     if ($nametag === false) {
         $this->nametag = $new_nick;
     } else {
         $this->nametag = $nametag;
     }
 }
 /**
  * @param BaseAPI $api
  * @param Player $player
  * @param array $values
  */
 public function __construct(BaseAPI $api, Player $player, array $values)
 {
     parent::__construct($api);
     $this->player = $player;
     $this->values = $values;
 }