Add files via upload

This commit is contained in:
Gurge44 authored and GitHub committed 2023-09-04 16:03:28 +02:00
1 parent 0974226660
commit 7c35e35e92
34 files changed
+649 -436

No files matched your search

+3 -3
View File
@@ -70,7 +70,7 @@ public static class SpamManager
if (player.PlayerId == PlayerControl.LocalPlayer.PlayerId) return false;
string name = player.GetRealName();
bool kick = false;
string msg = "";
string msg = string.Empty;
if (Options.AutoKickStart.GetBool())
{
@@ -88,7 +88,7 @@ public static class SpamManager
kick = true;
}
}
if (msg != "") Utils.SendMessage(msg);
if (msg != string.Empty && msg != "") Utils.SendMessage(msg);
if (kick) AmongUsClient.Instance.KickPlayer(player.GetClientId(), Options.AutoKickStartAsBan.GetBool());
return true;
}
@@ -111,7 +111,7 @@ public static class SpamManager
}
}
if (msg != "")
if (msg != string.Empty && msg != "")
{
if (kick || !GameStates.IsInGame) Utils.SendMessage(msg);
else