add ForceSkipCommand

This commit is contained in:
D1GQ committed 2026-01-29 16:47:56 -06:00
1 parent 2328818f8e
commit 60c8b035ff
1 file changed
+23
+23
View File
@@ -0,0 +1,23 @@
using BetterAmongUs.Attributes;
using BetterAmongUs.Modules;
namespace BetterAmongUs.Commands;
[RegisterCommand]
internal sealed class ForceSkipCommand : BaseCommand
{
internal override string Name => "forceskip";
internal override string Description => "Force skips a meeting in progress";
internal override bool ShowCommand() => GameState.IsHost && GameState.IsMeeting;
internal override void Run()
{
if (GameState.IsHost)
{
foreach (var client in AmongUsClient.Instance.allClients)
{
MeetingHud.Instance.RpcClearVote(client.Id);
}
MeetingHud.Instance.Close();
}
}
}