Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Added auto level enable with begin button #683

Open
wants to merge 4 commits into
base: dev-lite
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/models/Control.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh // strict

class Control extends Model {

Expand Down Expand Up @@ -81,6 +81,7 @@ class Control extends Model {
await \HH\Asio\va(
Announcement::genCreateAuto('Game has started!'), // Announce game starting
Configuration::genUpdate('game', '1'), // Mark game as started
Level::genSetStatusAll(true, 'all'), //Sets all levels to enabled
Configuration::genUpdate('scoring', '1'), // Enable scoring
);

Expand Down