Ejemplo n.º 1
0
 public function startGame()
 {
     parent::startGame();
     $this->zCount = ceil(count($this->players) / 2);
     $rainbow = [14, 1, 4, 5, 3, 11, 10];
     $rainbowIndex = 0;
     for ($x = -1; $x <= 12; $x++) {
         for ($z = -$this->zCount; $z <= $this->zCount; $z++) {
             $this->getWorld()->setBlock(new Position($x, $this->configs["y"], $z, $this->getWorld()), Block::get(Block::WOOL, $rainbow[$rainbowIndex]));
         }
         $rainbowIndex++;
         if ($rainbowIndex >= 7) {
             $rainbowIndex = 0;
         }
     }
 }
Ejemplo n.º 2
0
 public function startGame()
 {
     parent::startGame();
     $this->round = self::STATUS_IN_ROUND;
 }