Files
EndlessHostRoles/Patches/VoteBanSystemPatch.cs
T

22 lines
571 B
C#

using HarmonyLib;
namespace TOHE.Patches
{
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.AddVote))]
class VoteBanSystemPatch
{
public static bool Prefix()
{
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
}
}
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.CmdAddVote))]
class VoteBanSystemPatchCmd
{
public static bool Prefix()
{
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
}
}
}