Skip to content

Commit

Permalink
Add round to roundStart event
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewda committed Aug 10, 2016
1 parent 3e1659b commit ebb3255
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Livescore.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ Livescore.prototype._onMatchStarted = function(event) {

Livescore.prototype._onRoundStart = function() {
this.setTime(this.options[Livescore.EOption["ROUND_TIME"]]);
this.emit('roundStart');
this.emit('roundStart', {
round: this.scoreboard.currentRound
});

this.kills = 0;
this.knifeKills = 0;
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Emitted when the bomb is planted.
Emitted when the bomb is defused.

### roundStart
- `round` - The round number.

Emitted at the start of every round.

Expand Down

0 comments on commit ebb3255

Please sign in to comment.