From c16262399ad87a9cb00cde2b726c8caf3855410c Mon Sep 17 00:00:00 2001 From: Misfiy <85962933+Misfiy@users.noreply.github.com> Date: Fri, 5 Dec 2025 19:38:26 +0100 Subject: [PATCH 1/3] Update examples --- SecretAPI.Examples/Settings/ExampleDropdownSetting.cs | 2 +- SecretAPI.Examples/Settings/ExampleKeybindSetting.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/SecretAPI.Examples/Settings/ExampleDropdownSetting.cs b/SecretAPI.Examples/Settings/ExampleDropdownSetting.cs index 73949d2..c47c8d6 100644 --- a/SecretAPI.Examples/Settings/ExampleDropdownSetting.cs +++ b/SecretAPI.Examples/Settings/ExampleDropdownSetting.cs @@ -38,7 +38,7 @@ protected override void PersonalizeSetting() /// protected override void HandleSettingUpdate() { - Logger.Info($"{KnownOwner?.DisplayName ?? "null reference"} selected {SelectedOption} (Index {ValidatedSelectedIndex}/{Options.Length})"); + Logger.Info($"{KnownOwner?.DisplayName ?? "(Null Owner - What went wrong?)"} selected {SelectedOption} (Index {ValidatedSelectedIndex}/{Options.Length - 1})"); } } } \ No newline at end of file diff --git a/SecretAPI.Examples/Settings/ExampleKeybindSetting.cs b/SecretAPI.Examples/Settings/ExampleKeybindSetting.cs index 152d006..a51f541 100644 --- a/SecretAPI.Examples/Settings/ExampleKeybindSetting.cs +++ b/SecretAPI.Examples/Settings/ExampleKeybindSetting.cs @@ -1,5 +1,6 @@ namespace SecretAPI.Examples.Settings { + using LabApi.Features.Wrappers; using SecretAPI.Features.UserSettings; using UnityEngine; @@ -19,6 +20,9 @@ public ExampleKeybindSetting() /// public override CustomHeader Header => CustomHeader.Examples; + /// + protected override bool CanView(Player player) => player.RemoteAdminAccess; + /// protected override CustomSetting CreateDuplicate() => new ExampleKeybindSetting(); From 95f277dfd24f0f02e4ab183a63a78adf87dc05b3 Mon Sep 17 00:00:00 2001 From: Misfiy <85962933+Misfiy@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:45:22 +0100 Subject: [PATCH 2/3] Obsolete SendFakeCassieMessage | Bump Version to 2.0.3 --- SecretAPI/Extensions/MirrorExtensions.cs | 9 +-------- SecretAPI/SecretAPI.csproj | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/SecretAPI/Extensions/MirrorExtensions.cs b/SecretAPI/Extensions/MirrorExtensions.cs index f3a9f2d..126321e 100644 --- a/SecretAPI/Extensions/MirrorExtensions.cs +++ b/SecretAPI/Extensions/MirrorExtensions.cs @@ -5,7 +5,6 @@ using LabApi.Features.Console; using LabApi.Features.Wrappers; using Mirror; - using Respawning; /// /// Extensions related to Mirror. @@ -21,6 +20,7 @@ public static class MirrorExtensions /// Whether the cassie is noisy. /// Whether there is subtitles on the cassie. /// The custom subtitles to use for the cassie. + [Obsolete("Due to NW changes to Cassie, this is no longer functional.")] public static void SendFakeCassieMessage( this Player target, string message, @@ -29,13 +29,6 @@ public static void SendFakeCassieMessage( bool isSubtitles = true, string customSubtitles = "") { - foreach (RespawnEffectsController allController in RespawnEffectsController.AllControllers) - { - if (!allController) - continue; - - SendFakeRpcMessage(target, allController, typeof(RespawnEffectsController), nameof(RespawnEffectsController.RpcCassieAnnouncement), message, isHeld, isNoisy, isSubtitles, customSubtitles); - } } /// diff --git a/SecretAPI/SecretAPI.csproj b/SecretAPI/SecretAPI.csproj index bfa4f3b..ba3d4b3 100644 --- a/SecretAPI/SecretAPI.csproj +++ b/SecretAPI/SecretAPI.csproj @@ -4,7 +4,7 @@ net48 latest enable - 2.0.2 + 2.0.3 true From 9972dd56e76b3197297d290411e9a15207d81033 Mon Sep 17 00:00:00 2001 From: Misfiy <85962933+Misfiy@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:48:08 +0100 Subject: [PATCH 3/3] Update workflow --- .github/workflows/nuget.yml | 5 ----- .github/workflows/pull_request.yml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index ba7398f..64077c7 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -25,11 +25,6 @@ jobs: Invoke-WebRequest -Uri ${{ env.REFERENCES_URL }} -OutFile "${{ github.workspace }}/References.zip" Expand-Archive -Path "${{ github.workspace }}/References.zip" -DestinationPath ${{ env.REFERENCES_PATH }} - - name: Rename Assembly-CSharp-Publicized to Assembly-CSharp - shell: pwsh - run: | - Rename-Item -Path "${{ env.REFERENCES_PATH }}\Assembly-CSharp-Publicized.dll" -NewName "Assembly-CSharp.dll" - - name: Build and Pack NuGet env: SL_REFERENCES: ${{ env.REFERENCES_PATH }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 107e3cf..9996c17 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -25,11 +25,6 @@ jobs: run: | Invoke-WebRequest -Uri ${{ env.REFERENCES_URL }} -OutFile "${{ github.workspace }}/References.zip" Expand-Archive -Path "${{ github.workspace }}/References.zip" -DestinationPath ${{ env.REFERENCES_PATH }} - - - name: Rename Assembly-CSharp-Publicized to Assembly-CSharp - shell: pwsh - run: | - Rename-Item -Path "${{ env.REFERENCES_PATH }}\Assembly-CSharp-Publicized.dll" -NewName "Assembly-CSharp.dll" - name: Build env: