Skip to content

Commit

Permalink
fix tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
Bims-sh committed Jul 5, 2024
1 parent 85ff2a9 commit ac3cdee
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Events/VipGamemode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,28 @@ private void SetNonVipSettings(BattleBitPlayer player)

return request;
}

public override Task OnGameStateChanged(GameState oldState, GameState newState)
{
switch (newState)
{
case GameState.Playing:
Server.RoundSettings.SecondsLeft = 100000;
Server.RoundSettings.TeamATickets = 350;
Server.RoundSettings.TeamBTickets = 350;
break;
case GameState.CountingDown:
break;
case GameState.WaitingForPlayers:
break;
case GameState.EndingGame:
break;
default:
throw new ArgumentOutOfRangeException(nameof(newState), newState, null);
}

return Task.CompletedTask;
}

public override Task OnPlayerDied(BattleBitPlayer player)
{
Expand Down

0 comments on commit ac3cdee

Please sign in to comment.