fix: /help, /me, and /p commands can't work in non-English languages

This commit is contained in:
Cai 2024-07-31 19:11:50 +08:00
parent 0b6bf9ef40
commit 8df09cb4a8
2 changed files with 28 additions and 2 deletions

View file

@ -1497,11 +1497,11 @@ namespace TShockAPI
{
if (!String.IsNullOrEmpty(text))
{
text = item.Key.Value + ' ' + text;
text = EnglishLanguage.GetCommandTextByName(item.Value._name) + ' ' + text;
}
else
{
text = item.Key.Value;
text = EnglishLanguage.GetCommandTextByName(item.Value._name);
}
break;
}