From 49f239feb891389bf7a61cb61a3ff0f78ddfdac7 Mon Sep 17 00:00:00 2001 From: Cai <13110818005@qq.com> Date: Mon, 21 Jul 2025 14:04:13 +0800 Subject: [PATCH] i18n(Commands): add localization support for `alldeath`,`allpvpdeath` commands --- TShockAPI/Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 84610102..98cc639d 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -5854,7 +5854,7 @@ namespace TShockAPI var deathsRank = TShock.Players .Where(p => p is { Active: true }) .OrderByDescending(x => x.DeathsPVE) - .Select(x => $"*{x.Name} was slain {x.DeathsPVE} times."); + .Select(x => GetString($"*{x.Name} was slain {x.DeathsPVE} times.")); args.Player.SendErrorMessage(string.Join('\n',deathsRank)); } @@ -5870,7 +5870,7 @@ namespace TShockAPI var deathsRank = TShock.Players .Where(p => p is { Active: true }) .OrderByDescending(x => x.DeathsPVP) - .Select(x => $"*{x.Name} was slain by other players {x.DeathsPVP} times."); + .Select(x => GetString($"*{x.Name} was slain by other players {x.DeathsPVP} times.")); args.Player.SendErrorMessage(string.Join('\n',deathsRank)); }