diff --git a/Gamemodes/TheMindGame.cs b/Gamemodes/TheMindGame.cs index f70b5a74f..01e69a49f 100644 --- a/Gamemodes/TheMindGame.cs +++ b/Gamemodes/TheMindGame.cs @@ -786,7 +786,7 @@ public static class TheMindGame byte id = FindTargetIdFromText(); if (id == byte.MaxValue) break; - if (!pc.AmOwner && spamRequired) + if (!pc.IsModdedClient() && spamRequired) Utils.SendMessage("\n", pc.PlayerId, Translator.GetString("NoSpamAnymoreUseCmd")); if (id == WinningBriefcaseHolderId) diff --git a/Modules/RPC.cs b/Modules/RPC.cs index 8040463db..4b6d78d20 100644 --- a/Modules/RPC.cs +++ b/Modules/RPC.cs @@ -642,7 +642,7 @@ internal static class RPCHandlerPatch string commandKey = reader.ReadString(); string text = reader.ReadString(); - if (__instance == null || !__instance.IsModdedClient()) + if (!__instance || !__instance.IsModdedClient()) { Logger.Error("Player is null or not a modded client", "RequestCommandProcessingFromHost"); break; diff --git a/Patches/ChatCommandPatch.cs b/Patches/ChatCommandPatch.cs index 59c257568..3dcf80cc9 100644 --- a/Patches/ChatCommandPatch.cs +++ b/Patches/ChatCommandPatch.cs @@ -499,6 +499,7 @@ internal static class ChatCommands { Utils.SendMessage(GetString("CovenInfoDescription"), player.PlayerId); } + private static void NeutralInfoCommand(PlayerControl player, string text, string[] args) { Utils.SendMessage(GetString("NeutralInfoDescription"), player.PlayerId); diff --git a/Resources/Lang/en_US.jsonc b/Resources/Lang/en_US.jsonc index 451995924..50d1c29da 100644 --- a/Resources/Lang/en_US.jsonc +++ b/Resources/Lang/en_US.jsonc @@ -961,7 +961,7 @@ "InspectorCheckSelf": "HA!! You thought it would be this easy. You can not check yourself", "InspectorCheckTargetKnow": "Targets know they were checked by Inspector", "InspectorCheckTargetMsg": " were checked by Inspector.", - "InspectorCheckTrue": "{0} and {1} are in the same team!\"", + "InspectorCheckTrue": "{0} and {1} are in the same team!", "InspectorCopTargetReveal": "Looks like {0} is aligned with team {1}", "InspectorDead": "You can not use your power after death", "InspectorTryHideMsg": "Hide Inspector's commands", @@ -1760,7 +1760,7 @@ "CouncillorInfoLong": "(Impostors):\\nAs the Councillor, you can kill players during a meeting like a Judge.\\n\\nWhen killing in a meeting, those kills will appear as a trial from a Judge.\\n\\nThe kill command is /cmd tl [player id]\\nYou can see the player's id before the player's name, or use the /cmd id command to view the id of all players.", "CouncillorCanMurderImpostor": "Can Murder Impostors", "CouncillorCanMurderMadmate": "Can Murder Madmates", - "CouncillorDead": " You can't murder from the dead.\"", + "CouncillorDead": " You can't murder from the dead.", "CouncillorMakeEvilJudgeClear": "Show Trial as Councillor Murder", "CouncillorMurderMax": "Sorry, you've reached the maximum amount of murders.", "CouncillorMurderMaxMeeting": "You cannot murder more players in this meeting. You've reached the limit set by the host.",