From ccc872c76f85eb719dae25a6d9ccff25f8740b52 Mon Sep 17 00:00:00 2001 From: Isaac Date: Sat, 30 Mar 2024 02:44:08 -0700 Subject: [PATCH 1/3] Check timelimit regardless of gamemode --- Features/EndOfMapVote.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Features/EndOfMapVote.cs b/Features/EndOfMapVote.cs index b467eda..c49029b 100644 --- a/Features/EndOfMapVote.cs +++ b/Features/EndOfMapVote.cs @@ -16,7 +16,6 @@ public class EndOfMapVote : IPluginDependency private EndMapVoteManager _voteManager; private EndOfMapConfig _config = new(); private Timer? _timer; - private bool deathMatch => _gameMode?.GetPrimitiveValue() == 2 && _gameType?.GetPrimitiveValue() == 1; private ConVar? _gameType; private ConVar? _gameMode; @@ -69,9 +68,6 @@ void KillTimer() public void OnLoad(Plugin plugin) { - _gameMode = ConVar.Find("game_mode"); - _gameType = ConVar.Find("game_type"); - void MaybeStartTimer() { KillTimer(); @@ -93,7 +89,7 @@ void MaybeStartTimer() if (!_pluginState.DisableCommands && !_gameRules.WarmupRunning && CheckMaxRounds() && _config.Enabled) StartVote(); - else if (deathMatch) + else { MaybeStartTimer(); } From 8772e97ddfe9306b213755cf7e65f64e422b0955 Mon Sep 17 00:00:00 2001 From: jithatsonei Date: Thu, 18 Apr 2024 19:00:28 -0500 Subject: [PATCH 2/3] fix pathing --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5abccf..8c86236 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,17 +23,17 @@ jobs: - uses: actions/checkout@v2 - name: Restore dependencies - run: dotnet restore + run: dotnet restore ./src/KitsuneSteamRestrict.csproj - name: Build - run: dotnet publish --configuration Debug + run: dotnet publish --configuration Debug ./src/KitsuneSteamRestrict.csproj - name: Archive production artifacts uses: actions/upload-artifact@v2 with: name: net8.0-artifacts path: | - bin/Debug/net8.0/publish/RockTheVote* + src/bin/Debug/net8.0/publish/RockTheVote* release: needs: build @@ -67,4 +67,4 @@ jobs: files: bin/Debug/net8.0/* prerelease: ${{ env.IS_PRERELEASE }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5a6120c30a631ec35d644dade8bd7252d5ef4eaf Mon Sep 17 00:00:00 2001 From: jithatsonei Date: Thu, 18 Apr 2024 19:01:56 -0500 Subject: [PATCH 3/3] whoops --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c86236..2a2c541 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,17 +23,17 @@ jobs: - uses: actions/checkout@v2 - name: Restore dependencies - run: dotnet restore ./src/KitsuneSteamRestrict.csproj + run: dotnet restore - name: Build - run: dotnet publish --configuration Debug ./src/KitsuneSteamRestrict.csproj + run: dotnet publish --configuration Debug - name: Archive production artifacts uses: actions/upload-artifact@v2 with: name: net8.0-artifacts path: | - src/bin/Debug/net8.0/publish/RockTheVote* + bin/Debug/net8.0/publish/RockTheVote* release: needs: build