Skip to content

Commit

Permalink
Merge pull request #142 from shobhit-pathak/dev
Browse files Browse the repository at this point in the history
0.7.4 | CSS Upgrade and Chinese (Simplified) Translation
  • Loading branch information
shobhit-pathak authored Apr 26, 2024
2 parents 0fb0109 + 2116cc8 commit 4ae159f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions MatchZy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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/)";

Expand Down
2 changes: 1 addition & 1 deletion MatchZy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.201">
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.215">
<PrivateAssets>none</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
21 changes: 21 additions & 0 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
@@ -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}"
}

0 comments on commit 4ae159f

Please sign in to comment.