mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
805c48a70d
commit
32b05c8741
23 files changed
+203
-161
No files matched your search
@@ -5,6 +5,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using Hazel;
|
||||
using static EHR.Translator;
|
||||
|
||||
namespace EHR;
|
||||
@@ -103,7 +104,7 @@ public static class SpamManager
|
||||
kick = true;
|
||||
}
|
||||
|
||||
if (msg != string.Empty && msg != "") Utils.SendMessage(msg);
|
||||
if (msg != string.Empty && msg != "") Utils.SendMessage(msg, sendOption: SendOption.None);
|
||||
|
||||
if (kick) AmongUsClient.Instance.KickPlayer(player.GetClientId(), Options.AutoKickStartAsBan.GetBool());
|
||||
|
||||
@@ -134,11 +135,11 @@ public static class SpamManager
|
||||
if (msg != string.Empty && msg != "")
|
||||
{
|
||||
if (kick || !GameStates.IsInGame)
|
||||
Utils.SendMessage(msg);
|
||||
Utils.SendMessage(msg, sendOption: SendOption.None);
|
||||
else
|
||||
{
|
||||
foreach (PlayerControl pc in Main.AllPlayerControls.Where(x => x.IsAlive() == player.IsAlive()).ToArray())
|
||||
Utils.SendMessage(msg, pc.PlayerId);
|
||||
Utils.SendMessage(msg, pc.PlayerId, sendOption: SendOption.None);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user