From c77725b8ef99a15f2ec0bd73481a2aabb06e2566 Mon Sep 17 00:00:00 2001 From: PHGaming121 <76562427+PHGaming121@users.noreply.github.com> Date: Wed, 27 Mar 2024 03:53:36 -0300 Subject: [PATCH] make combo message translatable (#47) * Update ChatCommandPatch.cs * Update en_US.json --- Patches/ChatCommandPatch.cs | 4 ++-- Resources/Lang/en_US.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Patches/ChatCommandPatch.cs b/Patches/ChatCommandPatch.cs index 811f1ad6c..5ed48c0da 100644 --- a/Patches/ChatCommandPatch.cs +++ b/Patches/ChatCommandPatch.cs @@ -285,7 +285,7 @@ internal class ChatCommands sb.AppendLine(); } - sb.Append("\nUsage Format:\n/combo [add/ban/remove/allow] [main role] [addon]"); + sb.Append(GetString("ComboUsage")); Utils.SendMessage("\n", localPlayerId, sb.ToString()); break; @@ -1421,4 +1421,4 @@ internal class RpcSendChatPatch __result = true; return false; } -} \ No newline at end of file +} diff --git a/Resources/Lang/en_US.json b/Resources/Lang/en_US.json index 747a0b8d9..8d3b50a06 100644 --- a/Resources/Lang/en_US.json +++ b/Resources/Lang/en_US.json @@ -2067,6 +2067,7 @@ "ComboRemove": "{0} and {1} will no longer spawn together.", "ComboBan": "{0} and {1} will never spawn together.", "ComboAllow": "{0} and {1} can now spawn together.", + "ComboUsage": "\nUsage Format:\n/combo [add/ban/remove/allow] [main role] [addon]", "ERR-000-000-0": "No Error", "ERR-000-900-0": "Test Error Lv.0", "ERR-000-910-1": "Test Error Lv.1",