Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit ee615a5

Browse files
committed
Patch v1.2.1
1 parent 432170e commit ee615a5

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-- 2024. 04. 26 - v1.2.1
2+
3+
- update: Updated from NET7 to NET8
4+
- fix: Steam group check
5+
16
-- 2024. 04. 06 - v1.2.0
27

38
- feat: Created SteamService model

src/KitsuneSteamRestrict.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class PluginConfig : BasePluginConfig
5555
public class SteamRestrictPlugin : BasePlugin, IPluginConfig<PluginConfig>
5656
{
5757
public override string ModuleName => "Steam Restrict";
58-
public override string ModuleVersion => "1.2.0";
58+
public override string ModuleVersion => "1.2.1";
5959
public override string ModuleAuthor => "K4ryuu, Cruze @ KitsuneLab";
6060
public override string ModuleDescription => "Restrict certain players from connecting to your server.";
6161

@@ -190,7 +190,7 @@ private bool IsRestrictionViolated(CCSPlayerController player, SteamUserInfo use
190190
(Config.BlockPrivateProfile, 1, userInfo.IsPrivate ? 0 : 1),
191191
(Config.BlockTradeBanned, 1, userInfo.IsTradeBanned ? 0 : 1),
192192
(Config.BlockGameBanned, 1, userInfo.IsGameBanned ? 0 : 1),
193-
(!string.IsNullOrEmpty(Config.SteamGroupID), 1, userInfo.IsInSteamGroup ? 0 : 1),
193+
(!string.IsNullOrEmpty(Config.SteamGroupID), 1, userInfo.IsInSteamGroup ? 1 : 0),
194194
(Config.BlockVACBanned, 1, userInfo.IsVACBanned ? 0 : 1),
195195
};
196196

src/KitsuneSteamRestrict.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<PublishDir>./bin/KitsuneSteamRestrict/</PublishDir>
66
</PropertyGroup>
77
<PropertyGroup>
8-
<TargetFramework>net7.0</TargetFramework>
8+
<TargetFramework>net8.0</TargetFramework>
99
<ImplicitUsings>enable</ImplicitUsings>
1010
<Nullable>enable</Nullable>
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.198">
13+
<PackageReference Include="CounterStrikeSharp.API" Version="*">
1414
<PrivateAssets>none</PrivateAssets>
1515
<ExcludeAssets>runtime</ExcludeAssets>
1616
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)