Skip to content

Commit

Permalink
update to exiled 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-ZeroTwo committed May 12, 2023
1 parent 09993d5 commit 6096367
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions EndConditions/EndConditions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EXILED" Version="6.0.0-beta.25" />
<PackageReference Include="EXILED" Version="7.0.0-rc.1-2" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="YamlDotNet" Version="12.0.2" />
<PackageReference Include="YamlDotNet" Version="11.1.3-nullable-enums-0003" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion EndConditions/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public class EventHandlers
/// <inheritdoc cref="Exiled.Events.Handlers.Server.OnEndingRound(EndingRoundEventArgs)"/>
public void OnEndingRound(EndingRoundEventArgs ev)
{
ev.IsAllowed = false;
ev.IsRoundEnded = false;

if (Warhead.IsDetonated && plugin.Config.EndOnDetonation)
Expand Down
5 changes: 2 additions & 3 deletions EndConditions/Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public IEnumerable<string> GetRoles()
public void EndGame(EndingRoundEventArgs ev, LeadingTeam leadingTeam)
{
ev.LeadingTeam = leadingTeam;
ev.IsAllowed = true;
ev.IsRoundEnded = true;

API.BlacklistedPlayers.Clear();
Expand All @@ -69,9 +68,9 @@ public void EndGame(EndingRoundEventArgs ev, LeadingTeam leadingTeam)
Server.FriendlyFire = true;
}

private static string RoleName(RoleTypeId RoleTypeId)
private static string RoleName(RoleTypeId roleTypeId)
{
return RoleTypeId switch
return roleTypeId switch
{
RoleTypeId.None => nameof(RoleTypeId.None),
RoleTypeId.Scp173 => nameof(RoleTypeId.Scp173),
Expand Down

0 comments on commit 6096367

Please sign in to comment.