Skip to content

Commit

Permalink
Assign Winner for Votes
Browse files Browse the repository at this point in the history
  • Loading branch information
data-bomb committed Mar 9, 2024
1 parent 29f7a1b commit 79a2e49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Si_AdminMod/ChatVotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ private static void HandleVoteTimerExpired(object? source, ElapsedEventArgs e)
PlayerMethods.UnregisterPlayerPhrase(currentVoteResult.Command);
}

// assign winner
currentVoteResults.WinningCommand = winningResult.Command;

// call the vote handler
currentVoteResults.VoteHandler(currentVoteResults);

Expand Down

0 comments on commit 79a2e49

Please sign in to comment.