From f1a62b2d438d11e5a439f71e162c13a46cff249b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3=E6=8B=89=E5=85=8B?= <1540180211@qq.com> Date: Mon, 15 Apr 2024 09:15:02 +0800 Subject: [PATCH 1/5] Add language Chinese (Simplified) Translate by MerakW --- lang/zh-cn.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lang/zh-cn.json diff --git a/lang/zh-cn.json b/lang/zh-cn.json new file mode 100644 index 0000000..3a7622a --- /dev/null +++ b/lang/zh-cn.json @@ -0,0 +1,21 @@ +{ + "matchzy.ready.markedready": "您已被标记为准备完成。", + "matchzy.ready.markedunready": "您已经被标记为未准备。", + + "matchzy.knife.sidedecisionpending": "{green}{0}{default} 赢下了刀局。等待他们输入 {green}.stay{default} 或者 {green}.switch{default}。", + "matchzy.knife.decidedtostay": "{green}{0}{default} 决定保留阵营。", + "matchzy.knife.decidedtoswitch": "{green}{0}{default} 决定更换阵营。", + + "matchzy.pause.pausedthematch": "{green}{0}{default} 暂停了比赛。输入 .unpause 来解除暂停", + "matchzy.pause.teamsunpausedthematch": "双方均同意解除暂停, 比赛正在恢复!", + "matchzy.pause.teamwantstounpause": "{green}{0}{default} 想要解除暂停。 {green}{1}{default}, 请输入 !unpause 来确定。", + "matchzy.pause.adminpausedthematch": "{green}管理员{default} 暂停了比赛!", + "matchzy.pause.adminunpausedthematch": "{green}管理员{default} 结束了暂停, 比赛正在恢复! ", + "matchzy.pause.onlyadmincanunpause": "比赛被管理员暂停, 因此, 只有管理员才能解除暂停。", + "matchzy.pause.pausedbecauserestore": "比赛因为回合回溯暂停。双方需要输入 {green}.unpause{default} 以解除暂停。", + "matchzy.pause.techpausenotenabled": "技术暂停暂未启用。", + "matchzy.pause.notechpauseleft": "{green}{0}{default} 没有更多的技术暂停了!", + + "matchzy.restore.teamwantstorestore": "{green}{0}{default} 想要回溯游戏至本回合开始时。 {green}{1}{default}, 请输入 !stop 来确定。", + "matchzy.restore.restoredsuccessfully": "成功恢复备份文件: {0}" +} \ No newline at end of file From a65999961433e2c3c745e9345bfb4f80d478bd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3=E6=8B=89=E5=85=8B?= Date: Tue, 16 Apr 2024 09:03:56 +0800 Subject: [PATCH 2/5] Rename zh-cn.json to zh-hans.json More standardized naming is used --- lang/{zh-cn.json => zh-hans.json} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename lang/{zh-cn.json => zh-hans.json} (99%) diff --git a/lang/zh-cn.json b/lang/zh-hans.json similarity index 99% rename from lang/zh-cn.json rename to lang/zh-hans.json index 3a7622a..734cd9a 100644 --- a/lang/zh-cn.json +++ b/lang/zh-hans.json @@ -18,4 +18,4 @@ "matchzy.restore.teamwantstorestore": "{green}{0}{default} 想要回溯游戏至本回合开始时。 {green}{1}{default}, 请输入 !stop 来确定。", "matchzy.restore.restoredsuccessfully": "成功恢复备份文件: {0}" -} \ No newline at end of file +} From 73b7e3aa9b6880e8580eaf405c4861e2c862f6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3=E6=8B=89=E5=85=8B?= Date: Fri, 26 Apr 2024 15:48:34 +0800 Subject: [PATCH 3/5] Rename zh-hans.json to zh-Hans.json --- lang/{zh-hans.json => zh-Hans.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lang/{zh-hans.json => zh-Hans.json} (100%) diff --git a/lang/zh-hans.json b/lang/zh-Hans.json similarity index 100% rename from lang/zh-hans.json rename to lang/zh-Hans.json From 4f235d14a342ecc2d7c308c372060cbdf1aa2c9b Mon Sep 17 00:00:00 2001 From: Shobhit Pathak Date: Fri, 26 Apr 2024 19:13:03 +0530 Subject: [PATCH 4/5] 0.7.4 | upgrade css and Chinese (Simplified) translation --- EventHandlers.cs | 2 +- MatchZy.cs | 4 ++-- MatchZy.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EventHandlers.cs b/EventHandlers.cs index a0a8c4e..fb6301d 100644 --- a/EventHandlers.cs +++ b/EventHandlers.cs @@ -45,9 +45,9 @@ public HookResult EventPlayerConnectFullHandler(EventPlayerConnectFull @event, G if (isMatchSetup || matchModeOnly) { CsTeam team = GetPlayerTeam(player); - Log($"[EventPlayerConnectFull] KICKING PLAYER STEAMID: {steamId}, Name: {player.PlayerName} (NOT ALLOWED!)"); if (team == CsTeam.None) { + Log($"[EventPlayerConnectFull] KICKING PLAYER STEAMID: {steamId}, Name: {player.PlayerName} (NOT ALLOWED!)"); KickPlayer(player); return HookResult.Continue; } diff --git a/MatchZy.cs b/MatchZy.cs index 277830b..08cbb68 100644 --- a/MatchZy.cs +++ b/MatchZy.cs @@ -8,12 +8,12 @@ namespace MatchZy { - [MinimumApiVersion(201)] + [MinimumApiVersion(215)] public partial class MatchZy : BasePlugin { public override string ModuleName => "MatchZy"; - public override string ModuleVersion => "0.7.3"; + public override string ModuleVersion => "0.7.4"; public override string ModuleAuthor => "WD- (https://github.com/shobhit-pathak/)"; diff --git a/MatchZy.csproj b/MatchZy.csproj index 22b928e..7c7d494 100644 --- a/MatchZy.csproj +++ b/MatchZy.csproj @@ -7,7 +7,7 @@ - + none runtime compile; build; native; contentfiles; analyzers; buildtransitive From 2116cc87d08344699c91ff7f9d939066ef54685c Mon Sep 17 00:00:00 2001 From: Shobhit Pathak Date: Fri, 26 Apr 2024 19:15:49 +0530 Subject: [PATCH 5/5] Update Changelog.md --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c72bdce..6e2b3f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # MatchZy Changelog +# 0.7.4 + +#### April 26, 2024 + +- Upgraded CounterStrikeSharp to v215 +- Added Chinese (Simplified) translations. +- Fixed wrong `[EventPlayerConnectFull] KICKING PLAYER` during match setup. + # 0.7.3 #### April 06, 2024