Skip to content
Merged

Dev #78

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion SecretAPI.Examples/Settings/ExampleDropdownSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override void PersonalizeSetting()
/// <inheritdoc/>
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})");
}
}
}
4 changes: 4 additions & 0 deletions SecretAPI.Examples/Settings/ExampleKeybindSetting.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace SecretAPI.Examples.Settings
{
using LabApi.Features.Wrappers;
using SecretAPI.Features.UserSettings;
using UnityEngine;

Expand All @@ -19,6 +20,9 @@ public ExampleKeybindSetting()
/// <inheritdoc />
public override CustomHeader Header => CustomHeader.Examples;

/// <inheritdoc/>
protected override bool CanView(Player player) => player.RemoteAdminAccess;

/// <inheritdoc />
protected override CustomSetting CreateDuplicate() => new ExampleKeybindSetting();

Expand Down
9 changes: 1 addition & 8 deletions SecretAPI/Extensions/MirrorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using LabApi.Features.Console;
using LabApi.Features.Wrappers;
using Mirror;
using Respawning;

/// <summary>
/// Extensions related to Mirror.
Expand All @@ -21,6 +20,7 @@ public static class MirrorExtensions
/// <param name="isNoisy">Whether the cassie is noisy.</param>
/// <param name="isSubtitles">Whether there is subtitles on the cassie.</param>
/// <param name="customSubtitles">The custom subtitles to use for the cassie.</param>
[Obsolete("Due to NW changes to Cassie, this is no longer functional.")]
public static void SendFakeCassieMessage(
this Player target,
string message,
Expand All @@ -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);
}
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion SecretAPI/SecretAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net48</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<Version>2.0.2</Version>
<Version>2.0.3</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

Expand Down