mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
17 lines
523 B
C#
17 lines
523 B
C#
using BetterAmongUs.Items.Attributes;
|
|
using BetterAmongUs.Modules;
|
|
|
|
namespace BetterAmongUs.Commands;
|
|
|
|
[RegisterCommand]
|
|
internal class EndGameCommand : BaseCommand
|
|
{
|
|
internal override string Name => "endgame";
|
|
internal override string Description => "Force end the game";
|
|
internal override bool ShowCommand() => GameState.IsHost && !GameState.IsLobby && !GameState.IsFreePlay;
|
|
internal override void Run()
|
|
{
|
|
GameManager.Instance.RpcEndGame(GameOverReason.ImpostorDisconnect, false);
|
|
}
|
|
}
|