mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
add ForceSkipCommand
This commit is contained in:
1 parent
2328818f8e
commit
60c8b035ff
1 file changed
+23
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user