Organize Strings (#591)

* Fix part 1

* Fix part 2
This commit is contained in:
ZypherusKhan authored and GitHub committed 2026-04-21 20:32:01 +02:00
1 parent 8b525d5bb8
commit fd473554e4
4 files changed
+196 -365

No files matched your search

+2 -2
View File
@@ -239,7 +239,7 @@ public class Main : BasePlugin
public static ConfigEntry<string> BetaBuildUrl { get; private set; }
public static ConfigEntry<float> LastKillCooldown { get; private set; }
public static ConfigEntry<float> LastShapeshifterCooldown { get; private set; }
public static ConfigEntry<bool> AckdPP { get; set; }
public static ConfigEntry<bool> AckdPrivacyPolicy { get; set; }
public static IReadOnlyList<PlayerControl> AllPlayerControls => EnumeratePlayerControls().ToArray();
public static IReadOnlyList<PlayerControl> AllAlivePlayerControls => EnumerateAlivePlayerControls().ToArray();
@@ -364,7 +364,7 @@ public class Main : BasePlugin
MessageWait = Config.Bind("Other", "MessageWait", 0);
LastKillCooldown = Config.Bind("Other", "LastKillCooldown", (float)30);
LastShapeshifterCooldown = Config.Bind("Other", "LastShapeshifterCooldown", (float)30);
AckdPP = Config.Bind("Other", "AckdPP", false);
AckdPrivacyPolicy = Config.Bind("Other", "AckdPrivacyPolicy", false);
HasArgumentException = false;
+2 -2
View File
@@ -87,9 +87,9 @@ internal static class RunLoginPatch
{
if (DebugModeManager.AmDebugger) canOnline = true;
if (!Main.AckdPP.Value)
if (!Main.AckdPrivacyPolicy.Value)
{
ModUpdater.ShowPopupWithTwoButtons(GetString("PP"), GetString("Yes"), GetString("MainMenu.ExitGameButton"), () => Main.AckdPP.Value = true, Application.Quit);
ModUpdater.ShowPopupWithTwoButtons(GetString("PP"), GetString("Yes"), GetString("MainMenu.ExitGameButton"), () => Main.AckdPrivacyPolicy.Value = true, Application.Quit);
return;
}
+1 -1
View File
@@ -509,7 +509,7 @@ internal static class OnPlayerJoinedPatch
if (AmongUsClient.Instance.AmHost && client.PlatformData.Platform is Platforms.Android or Platforms.IPhone && Options.KickAndroidPlayer.GetBool())
{
AmongUsClient.Instance.KickPlayer(client.Id, false);
string msg = string.Format(GetString("KickAndriodPlayer"), client.PlayerName);
string msg = string.Format(GetString("KickMobilePlayer"), client.PlayerName);
Logger.SendInGame(msg, Color.yellow);
Logger.Info(msg, "Android Kick");
}
+191 -360
View File
File diff suppressed because it is too large. Load diff