mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Add files via upload
This commit is contained in:
1 parent
0974226660
commit
7c35e35e92
34 files changed
+649
-436
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user