Skip to content

Commit

Permalink
0.7.6 | Remaining translations
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhit-pathak committed Apr 27, 2024
1 parent 15e0dad commit a79ad9a
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
rm -r package/*

echo "Creating package with CounterStrikeSharp (CSSharp) v$CSSHARP_VERSION for Windows"
cp -r cfg package
cd package/
echo "Installing CounterStrikeSharp (CSSharp) v$CSSHARP_VERSION"
[ -e addons/counterstrikesharp ] && rm -rf addons/counterstrikesharp && echo "CounterStrikeSharp removed" || echo "old CounterStrikeSharp not found"
Expand Down
8 changes: 4 additions & 4 deletions MatchZy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class MatchZy : BasePlugin
{

public override string ModuleName => "MatchZy";
public override string ModuleVersion => "0.7.5";
public override string ModuleVersion => "0.7.6";

public override string ModuleAuthor => "WD- (https://github.com/shobhit-pathak/)";

Expand Down Expand Up @@ -321,8 +321,8 @@ public override void Load(bool hotReload) {
{
if (victim.IsBot) {
int damage = @event.DmgHealth;
/* int postDamageHealth = @event.Health; */
PrintToPlayerChat(@event.Attacker, Localizer["matchzy.pracc.damage", victim.PlayerName, damage]);
int postDamageHealth = @event.Health;
PrintToPlayerChat(@event.Attacker, Localizer["matchzy.pracc.damage", damage, victim.PlayerName, postDamageHealth]);
}
return HookResult.Continue;
}
Expand Down Expand Up @@ -399,7 +399,7 @@ public override void Load(bool hotReload) {
Server.PrintToChatAll($"{adminChatPrefix} {commandArg}");
} else {
// ReplyToUserCommand(player, "Usage: .asay <message>");
ReplyToUserCommand(player, Localizer["matchzy.cc.usage, $".asay <message>"]);
ReplyToUserCommand(player, Localizer["matchzy.cc.usage", ".asay <message>"]);
}
} else {
SendPlayerNotAdminMessage(player);
Expand Down
2 changes: 2 additions & 0 deletions Pausing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public partial class MatchZy
public void TechPause(CCSPlayerController? player, CommandInfo? command)
{
// Tech Pause is WIP
return;

if (!isMatchLive) return;

// Treating .tech command as .forcepause if it is used via server console.
Expand Down
2 changes: 1 addition & 1 deletion Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ private void ForcePauseMatch(CCSPlayerController? player, CommandInfo? command)

private void ForceUnpauseMatch(CCSPlayerController? player, CommandInfo? command)
{
if (isMatchLive && isPaused) {
if (matchStarted && isPaused) {
if (!IsPlayerAdmin(player, "css_forceunpause", "@css/config")) {
SendPlayerNotAdminMessage(player);
return;
Expand Down
2 changes: 1 addition & 1 deletion lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@
"matchzy.pracc.grenade": "Grenade thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.molotov": "Molotov thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.decoy": "Decoy thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.damage": "{lightblue}{0}{default} has been damaged for {green}{1}{default}hp",
"matchzy.pracc.damage": "{red}{0}{default} damage to {lightblue}{1}{default}({green}{2}{default} health)",
"matchzy.pracc.blind": "{lightblue}{0}{default} has been blinded for {green}{1}{default}s"
}
2 changes: 1 addition & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@
"matchzy.pracc.grenade": "Grenade thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.molotov": "Molotov thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.decoy": "Decoy thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.damage": "{lightblue}{0}{default} has been damaged for {green}{1}{default}hp",
"matchzy.pracc.damage": "{red}{0}{default} damage to {lightblue}{1}{default}({green}{2}{default} health)",
"matchzy.pracc.blind": "{lightblue}{0}{default} has been blinded for {green}{1}{default}s"
}
2 changes: 1 addition & 1 deletion lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"matchzy.pracc.grenade": "Grenade thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.molotov": "Molotov thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.decoy": "Decoy thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.damage": "{lightblue}{0}{default} has been damaged for {green}{1}{default}hp",
"matchzy.pracc.damage": "{red}{0}{default} damage to {lightblue}{1}{default}({green}{2}{default} health)",
"matchzy.pracc.blind": "{lightblue}{0}{default} has been blinded for {green}{1}{default}s"
}

2 changes: 1 addition & 1 deletion lang/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"matchzy.pracc.grenade": "Grenade thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.molotov": "Molotov thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.decoy": "Decoy thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.damage": "{lightblue}{0}{default} has been damaged for {green}{1}{default}hp",
"matchzy.pracc.damage": "{red}{0}{default} damage to {lightblue}{1}{default}({green}{2}{default} health)",
"matchzy.pracc.blind": "{lightblue}{0}{default} has been blinded for {green}{1}{default}s"
}

2 changes: 1 addition & 1 deletion lang/pt-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"matchzy.pracc.grenade": "Grenade thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.molotov": "Molotov thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.decoy": "Decoy thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.damage": "{lightblue}{0}{default} has been damaged for {green}{1}{default}hp",
"matchzy.pracc.damage": "{red}{0}{default} damage to {lightblue}{1}{default}({green}{2}{default} health)",
"matchzy.pracc.blind": "{lightblue}{0}{default} has been blinded for {green}{1}{default}s"
}

2 changes: 1 addition & 1 deletion lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@
"matchzy.pracc.grenade": "Grenade thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.molotov": "Molotov thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.decoy": "Decoy thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.damage": "{lightblue}{0}{default} has been damaged for {green}{1}{default}hp",
"matchzy.pracc.damage": "{red}{0}{default} damage to {lightblue}{1}{default}({green}{2}{default} health)",
"matchzy.pracc.blind": "{lightblue}{0}{default} has been blinded for {green}{1}{default}s"
}
2 changes: 1 addition & 1 deletion lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@
"matchzy.pracc.grenade": "Grenade thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.molotov": "Molotov thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.decoy": "Decoy thrown by {red}{0}{default} took {green}{1}{default}s to detonate",
"matchzy.pracc.damage": "{lightblue}{0}{default} has been damaged for {green}{1}{default}hp",
"matchzy.pracc.damage": "{red}{0}{default} damage to {lightblue}{1}{default}({green}{2}{default} health)",
"matchzy.pracc.blind": "{lightblue}{0}{default} has been blinded for {green}{1}{default}s"
}

0 comments on commit a79ad9a

Please sign in to comment.