diff --git a/CHANGELOG b/CHANGELOG index e69de29..445e7a5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -0,0 +1,3 @@ +-- 2024. 04. 11 - v1.0.1 + +- upgrade: Upgrade API to use latest K4-System diff --git a/src/K4-SharedApi.dll b/src/K4-SharedApi.dll index ee904ec..60de566 100644 Binary files a/src/K4-SharedApi.dll and b/src/K4-SharedApi.dll differ diff --git a/src/K4-System-MMRanks.cs b/src/K4-System-MMRanks.cs index cced21d..389e021 100644 --- a/src/K4-System-MMRanks.cs +++ b/src/K4-System-MMRanks.cs @@ -18,12 +18,12 @@ public sealed class PluginConfig : BasePluginConfig public override int Version { get; set; } = 1; } - [MinimumApiVersion(198)] + [MinimumApiVersion(200)] public sealed partial class PluginK4SystemMMRanks : BasePlugin, IPluginConfig { public override string ModuleName => "K4-System Matchmaking Ranks"; - public override string ModuleVersion => "1.0.0"; + public override string ModuleVersion => "1.0.1"; public override string ModuleAuthor => "K4ryuu"; public required PluginConfig Config { get; set; } = new PluginConfig(); @@ -38,7 +38,7 @@ public void OnConfigParsed(PluginConfig config) this.Config = config; } - public static PlayerCapability Capability_SharedAPI { get; } = new("k4-system:sharedapi"); + public static PlayerCapability Capability_SharedAPI { get; } = new("k4-system:sharedapi"); public override void Load(bool hotReload) { @@ -51,13 +51,13 @@ public override void Load(bool hotReload) .ToList() .ForEach(p => { - IK4SharedApi? apiHandler = Capability_SharedAPI.Get(p); + IPlayerAPI? apiHandler = Capability_SharedAPI.Get(p); if (apiHandler == null) return; - int rankId = apiHandler.PlayerRankID; - int points = apiHandler.PlayerPoints; + int rankId = apiHandler.RankID; + int points = apiHandler.Points; p.CompetitiveRankType = (sbyte)(Config.Mode == 1 ? 11 : 12); p.CompetitiveRanking = Config.Mode == 1 ? points : rankId >= 19 ? 18 : rankId; diff --git a/src/K4-System-MMRanks.csproj b/src/K4-System-MMRanks.csproj index 5117d8f..28759ab 100644 --- a/src/K4-System-MMRanks.csproj +++ b/src/K4-System-MMRanks.csproj @@ -6,12 +6,12 @@ ./bin/K4-System-MMRanks/ - net7.0 + net8.0 enable enable - + none runtime compile; build; native; contentfiles; analyzers; buildtransitive