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:
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();
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