mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
22 lines
588 B
C#
22 lines
588 B
C#
using HarmonyLib;
|
|
|
|
namespace EHR.Patches
|
|
{
|
|
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.AddVote))]
|
|
internal class VoteBanSystemPatch
|
|
{
|
|
public static bool Prefix()
|
|
{
|
|
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
|
|
}
|
|
}
|
|
|
|
[HarmonyPatch(typeof(VoteBanSystem), nameof(VoteBanSystem.CmdAddVote))]
|
|
internal class VoteBanSystemPatchCmd
|
|
{
|
|
public static bool Prefix()
|
|
{
|
|
return !AmongUsClient.Instance.AmHost || !Options.DisableVoteBan.GetBool();
|
|
}
|
|
}
|
|
} |