mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
1 parent
8b525d5bb8
commit
fd473554e4
4 files changed
+196
-365
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user