mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Ability use gain every 5s, /changerole, votekick disable setting, add head hunter RPC, bug fixes
This commit is contained in:
1 parent
2ffab98391
commit
2dc400be01
37 files changed
+329
-72
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user