From 7b2138d7009ea83a60cd1ceb839a9b0b14f9c746 Mon Sep 17 00:00:00 2001 From: RavMorgan <48182970+RavMorgan@users.noreply.github.com> Date: Sun, 7 May 2023 15:53:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B5=D0=B1=D0=B0=D0=BB=D0=B8=20(#?= =?UTF-8?q?32)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mona Hmiza <> --- Content.Server/Voting/VoteCommands.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Voting/VoteCommands.cs b/Content.Server/Voting/VoteCommands.cs index 25cd259031..cbc16e80b1 100644 --- a/Content.Server/Voting/VoteCommands.cs +++ b/Content.Server/Voting/VoteCommands.cs @@ -19,17 +19,19 @@ using Robust.Shared.Console; namespace Content.Server.Voting { - [AnyCommand] + [AdminCommand(AdminFlags.Admin)] // WD MODIFICATION public sealed class CreateVoteCommand : IConsoleCommand { [Dependency] private readonly IAdminLogManager _adminLogger = default!; + public string Command => "createvote"; public string Description => Loc.GetString("cmd-createvote-desc"); public string Help => Loc.GetString("cmd-createvote-help"); public void Execute(IConsoleShell shell, string argStr, string[] args) { + if (args.Length != 1) { shell.WriteError(Loc.GetString("shell-need-exactly-one-argument"));